branch: externals/denote
commit 11def0d0c5f63f8e92ea49fffaee823964bb5252
Author: Protesilaos Stavrou <[email protected]>
Commit: Protesilaos Stavrou <[email protected]>
Add 'mode' and remove 'dedicated' from display-buffer action alist
Otherwise, it keeps creating new windows and
'dispplay-buffer-reuse-mode-window' does not do the right thing.
---
denote.el | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/denote.el b/denote.el
index 7d68f83a99..6bc4307fa4 100644
--- a/denote.el
+++ b/denote.el
@@ -604,8 +604,8 @@ command."
(defcustom denote-backlinks-display-buffer-action
'((display-buffer-reuse-mode-window display-buffer-below-selected)
- (window-height . fit-window-to-buffer)
- (dedicated . t))
+ (mode . denote-query-mode)
+ (window-height . fit-window-to-buffer))
"The action used to display the current file's backlinks buffer.
The value has the form (FUNCTION . ALIST), where FUNCTION is
@@ -639,8 +639,8 @@ and/or the documentation string of `display-buffer'."
(defcustom denote-query-links-display-buffer-action
'((display-buffer-reuse-mode-window display-buffer-below-selected)
- (window-height . fit-window-to-buffer)
- (dedicated . t))
+ (mode . denote-query-mode)
+ (window-height . fit-window-to-buffer))
"The action used to display query links.
This is the same as `denote-backlinks-display-buffer-action'. Refer to
its documentation for the technicalities."