From f0c5d171acdc679a981adaa1816865fc94ef76a5 Mon Sep 17 00:00:00 2001 From: Guangxiong Lin Date: Sun, 13 Mar 2022 17:52:50 +0800 Subject: Save all org buffers after capture (emacs) --- .emacs.d/lisp/init-org.el | 1 + 1 file changed, 1 insertion(+) diff --git a/.emacs.d/lisp/init-org.el b/.emacs.d/lisp/init-org.el index 1f8e017..77f86f8 100644 --- a/.emacs.d/lisp/init-org.el +++ b/.emacs.d/lisp/init-org.el @@ -32,6 +32,7 @@ (advice-add 'org-refile :around 'gx/org-refile) (add-to-list 'auto-mode-alist '("\\.org\\'" . org-mode)) +(add-hook 'org-capture-after-finalize-hook 'org-save-all-org-buffers) ;; keybinds (with-eval-after-load 'evil -- cgit v1.2.3