Minor refactors across the board

This commit is contained in:
Henrik Lissner 2019-11-04 03:35:37 -05:00
parent 684e69c968
commit 2bf74158fd
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
5 changed files with 7 additions and 11 deletions

View file

@ -57,9 +57,8 @@ you're done. This can be called from an external shell script."
(org-capture)
(unwind-protect
(counsel-org-capture)
(if-let* ((buf (cl-loop for buf in (buffer-list)
if (buffer-local-value 'org-capture-mode buf)
return buf)))
(if-let (buf (cl-find-if (doom-partial #'buffer-local-value 'org-capture-mode)
(buffer-list)))
(with-current-buffer buf
(add-hook 'kill-buffer-hook #'+org-capture-cleanup-frame-h nil t))
(delete-frame frame))))))