Merge pull request #3213 from wedens/org-capture-frame-refile

Prevent doom-capture frame from closing when refiling
This commit is contained in:
Henrik Lissner 2020-06-04 19:50:12 -04:00 committed by GitHub
commit af91af01fa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View file

@ -23,7 +23,8 @@
;;;###autoload
(defun +org-capture-cleanup-frame-h ()
"Closes the org-capture frame once done adding an entry."
(when (+org-capture-frame-p)
(when (and (+org-capture-frame-p)
(not org-capture-is-refiling))
(delete-frame nil t)))
;;;###autoload