From 65f98d8d12d172b25c985c57c77ed32c755783f5 Mon Sep 17 00:00:00 2001 From: JSDurand Date: Tue, 21 Sep 2021 10:08:42 +0800 Subject: * bookmark-conf.el: Display bookmarks in the same window. --- bookmark-conf.el | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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 -- cgit v1.2.3-18-g5258