Source

emacsd / init-org-refile.el

Full commit
;;; init-org-refile.el
;;
;; Copyright (C) Yagnesh Raghava Yakkala. www.yagnesh.org
;;    File: init-org-refile.el
;; Created: Tuesday, May 17 2011
;; License: GPL v3 or later. You should get a copy from <http://www.gnu.org/licenses/gpl.html>

;;; Description:
;;  refile stuff

;;;  Targets include this file and any file contributing to the agenda
;;;  - up to 5 levels deep
(setq org-refile-targets
      '((org-agenda-files :maxlevel . 5) (nil :maxlevel . 5)))

;;;  Targets start with the file name - allows creating level 1 tasks
(setq org-refile-use-outline-path (quote file))

;;;  Targets complete in steps so we start with filename, TAB shows
;;;  the next level of targets etc
(setq org-outline-path-complete-in-steps t)

;;;  Allow refile to create parent tasks with confirmation
(setq org-refile-allow-creating-parent-nodes (quote confirm))

;;; goto/navigate with org-refile (C-u c-c c-w)
(setq org-goto-max-level 3)
(setq org-goto-interface 'outline-path-completion)
(setq org-outline-path-complete-in-steps nil)

(global-set-key (kbd "C-c C-w") 'org-refile)  ; make it global


;;; init-org-refile.el ends here