aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuangxiong Lin <[email protected]>2022-03-13 17:52:50 +0800
committerGuangxiong Lin <[email protected]>2022-03-13 17:52:50 +0800
commitf0c5d171acdc679a981adaa1816865fc94ef76a5 (patch)
tree134b1ca7d500197b6f582684bb59d4e941bbac4a
parent88e3fdfdcf6a8a11ee592f2aa191bd44dc7cad1d (diff)
downloaddotfiles-f0c5d171acdc679a981adaa1816865fc94ef76a5.tar.gz
dotfiles-f0c5d171acdc679a981adaa1816865fc94ef76a5.tar.bz2
dotfiles-f0c5d171acdc679a981adaa1816865fc94ef76a5.zip
Save all org buffers after capture (emacs)
-rw-r--r--.emacs.d/lisp/init-org.el1
1 files changed, 1 insertions, 0 deletions
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