mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
fix(org): no roam buffer for capture buffers
This commit is contained in:
committed by
Henrik Lissner
parent
13163888a1
commit
53fcce8187
@ -91,7 +91,8 @@ In case of failure, fail gracefully."
|
|||||||
(add-hook! 'org-roam-find-file-hook :append
|
(add-hook! 'org-roam-find-file-hook :append
|
||||||
(defun +org-roam-open-with-buffer-maybe-h ()
|
(defun +org-roam-open-with-buffer-maybe-h ()
|
||||||
(and +org-roam-open-buffer-on-find-file
|
(and +org-roam-open-buffer-on-find-file
|
||||||
(not org-roam-capture--node) ; don't proc for capture buffers
|
(not org-roam-capture--node) ;; don't proc for roam capture buffers
|
||||||
|
(not org-capture-mode) ;; don't proc for normal capture buffers
|
||||||
(not (eq 'visible (org-roam-buffer--visibility)))
|
(not (eq 'visible (org-roam-buffer--visibility)))
|
||||||
(org-roam-buffer-toggle))))
|
(org-roam-buffer-toggle))))
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user