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:
parent
6e03ddacda
commit
d24fce1dcd
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue