mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
Fix void-variable org-capture-is-refiling error
In case org-capture.el isn't loaded when org-refile is used.
This commit is contained in:
@ -37,7 +37,7 @@
|
||||
;; fix #462: when refiling from org-capture, Emacs prompts to kill the
|
||||
;; underlying, modified buffer. This fixes that.
|
||||
(defun +org-capture*refile (&rest _)
|
||||
(when org-capture-is-refiling
|
||||
(when (bound-and-true-p org-capture-is-refiling)
|
||||
(org-save-all-org-buffers)))
|
||||
(advice-add 'org-refile :after #'+org-capture*refile)
|
||||
|
||||
|
Reference in New Issue
Block a user