summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)