summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2015-04-04 01:19:14 -0400
committerKyle Meyer <kyle@kyleam.com>2015-04-04 01:23:21 -0400
commit8fda96da3cb2c4f34fcf4baf318fd2e151646ce1 (patch)
treeb8b4ae7ac5bbfda60a97a5bcb17fe346e61bfc42
parentb97177d8399d6bfe0a1bdfeeee1f950de08a9fb0 (diff)
downloademacs.d-8fda96da3cb2c4f34fcf4baf318fd2e151646ce1.tar.gz
Org: Check "SORT" property after refiling
-rw-r--r--lisp/init-org.el2
1 files changed, 2 insertions, 0 deletions
diff --git a/lisp/init-org.el b/lisp/init-org.el
index 8f81b78..af07450 100644
--- a/lisp/init-org.el
+++ b/lisp/init-org.el
@@ -518,6 +518,8 @@ displayed in the agenda."
(setq org-refile-targets '((nil :maxlevel . 2))
org-refile-cache nil)
+(add-hook 'org-after-refile-insert-hook 'km/org-maybe-sort-parent)
+
(defvar km/org-agenda-refile-targets
'((nil :maxlevel . 3)
(org-agenda-files :maxlevel . 2)