From 9ffcf0ee68093244c01de67bbe44b02c8c88dfc6 Mon Sep 17 00:00:00 2001 From: Guangxiong Lin Date: Sun, 13 Mar 2022 12:21:33 +0800 Subject: Save files when refile (emacs) --- .emacs.d/lisp/init-org.el | 1 + 1 file changed, 1 insertion(+) (limited to '.emacs.d/lisp') diff --git a/.emacs.d/lisp/init-org.el b/.emacs.d/lisp/init-org.el index 8d43dbd..2cb2407 100644 --- a/.emacs.d/lisp/init-org.el +++ b/.emacs.d/lisp/init-org.el @@ -22,6 +22,7 @@ "A block showing stuck projects.") (add-to-list 'auto-mode-alist '("\\.org\\'" . org-mode)) +(add-hook 'org-after-refile-insert-hook 'org-save-all-org-buffers) ;; keybinds (with-eval-after-load 'evil -- cgit v1.2.3