emacs - orgmode refile config
authorPeng Li <seudut@gmail.com>
Sun, 26 Jun 2016 18:36:57 +0000 (02:36 +0800)
committerPeng Li <seudut@gmail.com>
Sun, 26 Jun 2016 18:36:57 +0000 (02:36 +0800)
emacs.d/config.org

index 9df2d60..1f92827 100644 (file)
@@ -661,6 +661,17 @@ All captured file which need next actions are stored in =refile.org=,
                 ("h" "Habit" entry (file org-default-notes-file)
                  "* NEXT %?\n%a\nSCHEDULED: %(format-time-string \"%<<%Y-%m-%d %a .+1d/3d>>\")\n:PROPERTITES:\n:STYLE: habit\n:REPEAT_TO_STATE: NEXT\n:END:\n "))))
 #+END_SRC
+
+**** Refiling Tasks
+
+#+BEGIN_SRC emacs-lisp :tangle yes :results silent
+  (setq org-refile-targets (quote (;; (nil :maxlevel . 9)
+                                   (org-agenda-files :maxlevel . 9))))
+
+  (setq org-refile-use-outline-path t)
+
+  (setq org-refile-allow-creating-parent-nodes (quote confirm))
+#+END_SRC
 *** Agenda Setup
 
 #+BEGIN_SRC emacs-lisp :tangle yes :results silent