summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJSDurand <mmemmew@gmail.com>2021-09-21 10:08:42 +0800
committerJSDurand <mmemmew@gmail.com>2021-09-21 10:08:42 +0800
commit65f98d8d12d172b25c985c57c77ed32c755783f5 (patch)
tree094bbb4e76d9a581fecd8f11aefbdde3acae3002
parent6bf9731a453db7f19060e998f4d099c3bf15bb9d (diff)
* bookmark-conf.el: Display bookmarks in the same window.
-rw-r--r--bookmark-conf.el12
1 files changed, 12 insertions, 0 deletions
diff --git a/bookmark-conf.el b/bookmark-conf.el
index 9de3d8d..4e47910 100644
--- a/bookmark-conf.el
+++ b/bookmark-conf.el
@@ -146,5 +146,17 @@ ARGS are ignored."
:after
#'durand-bookmark-jump-fit-to-window)
+;;; Display of the list
+
+(cond
+ ((assoc blist-buffer-name display-buffer-alist #'string-match-p)
+ (setcdr (assoc durand-chercher-pdf-buffer-name
+ display-buffer-alist #'string-match-p)
+ '((display-buffer-same-window))))
+ (t
+ (add-to-list 'display-buffer-alist
+ `(,(rx bos (eval blist-buffer-name) eos)
+ (display-buffer-same-window)))))
+
(provide 'bookmark-conf)
;;; bookmark-conf.el ends here