lang/org: fix kill-confirm prompt when refiling from org-capture #462
This commit is contained in:
parent
cc2e4e192b
commit
0260d60dd0
1 changed files with 7 additions and 0 deletions
|
@ -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))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue