From 84d5ccf8ffc90cb12dbf15e7f59346e377fca55d Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Mon, 11 Oct 2021 07:17:53 -0700 Subject: org: save org buffers after refill --- emacs/custom/fcuny-org.el | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'emacs') 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) -- cgit 1.4.1