From 53fcce8187deb833b08bdff3d4642035bc2983e5 Mon Sep 17 00:00:00 2001 From: Valentin Herrmann Date: Thu, 11 Nov 2021 15:07:04 +0100 Subject: [PATCH] fix(org): no roam buffer for capture buffers --- modules/lang/org/contrib/roam2.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/lang/org/contrib/roam2.el b/modules/lang/org/contrib/roam2.el index 1acdb7774..f6649f024 100644 --- a/modules/lang/org/contrib/roam2.el +++ b/modules/lang/org/contrib/roam2.el @@ -91,7 +91,8 @@ In case of failure, fail gracefully." (add-hook! 'org-roam-find-file-hook :append (defun +org-roam-open-with-buffer-maybe-h () (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))) (org-roam-buffer-toggle))))