mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
lang/org: fix kill-confirm prompt when refiling from org-capture #462
This commit is contained in:
@ -36,6 +36,13 @@
|
||||
|
||||
(add-hook 'org-capture-after-finalize-hook #'+org-capture|cleanup-frame)
|
||||
|
||||
;; fix #462: when refiling from org-capture, Emacs prompts to kill the
|
||||
;; underlying, modified buffer. This fixes that.
|
||||
(defun +org-capture*refile (orig-fn &rest args)
|
||||
(when org-capture-is-refiling
|
||||
(org-save-all-org-buffers)))
|
||||
(advice-add 'org-refile :after #'+org-capture*refile)
|
||||
|
||||
(when (featurep! :feature evil)
|
||||
(add-hook 'org-capture-mode-hook #'evil-insert-state))
|
||||
|
||||
|
Reference in New Issue
Block a user