summary refs log tree commit diff
path: root/emacs/custom
diff options
context:
space:
mode:
Diffstat (limited to 'emacs/custom')
-rw-r--r--emacs/custom/fcuny-org.el6
1 files changed, 6 insertions, 0 deletions
diff --git a/emacs/custom/fcuny-org.el b/emacs/custom/fcuny-org.el
index 5486fc2..7319b72 100644
--- a/emacs/custom/fcuny-org.el
+++ b/emacs/custom/fcuny-org.el
@@ -18,6 +18,12 @@
          (org-capture-prepare-finalize . org-save-all-org-buffers))
   :bind (("C-c c" . org-capture))
 
+  :init
+  ;; save all the org buffers after refilling tasks
+  (advice-add 'org-refile :after
+              (lambda (&rest _)
+                (org-save-all-org-buffers)))
+
   :config
   (defvar load-language-list '((emacs-lisp . t)
                                (python . t)