From efd8dd28d7e002600f16a45928e9e8aa561dd228 Mon Sep 17 00:00:00 2001 From: Gerard Vermeulen Date: Sat, 9 Dec 2023 10:59:32 +0100 Subject: [PATCH] Save the `bookmark' history and clarify the `bookmark' usage --- README.org | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/README.org b/README.org index ef189ff..5693029 100644 --- a/README.org +++ b/README.org @@ -795,12 +795,23 @@ and [[lst:3rd-window-management]] implement a selection of his recommendations. :CUSTOM_ID: sec:bookmarks :END: +Listing [[lst:setup-bookmark][bookmark setup]] preserves bookmark history in [[./var/bookmark-default.el][bookmark-default.el]]. To +access the bookmark history, type: +- {{{kbd(C-x r b)}}} src_emacs-lisp[:results silent]{(call-interactively + 'consult-bookmark)} to jump to a saved bookmark. +- {{{kbd(A-x list-bookmarks)}}} src_emacs-lisp[:results + silent]{(call-interactively 'list-bookmarks)} to edit or use the history. +BUG: The virtual buffers of the ~consult-buffer~ command do not seem to work. +Therefore, ~consult-buffer~ is no means to access the bookmark history (contrary +to claims in [[info:consult#Top][consult (info)]]). + #+caption[Let Emacs save bookmarks when it is killed]: #+caption: Let Emacs save bookmarks when it is killed. #+name: lst:setup-bookmark #+begin_src emacs-lisp -n :results silent (with-eval-after-load 'bookmark - (setopt bookmark-save-flag 1)) + (setopt bookmark-save-flag 1) + (setf bookmark-exit-hook 'bookmark-unload-function)) #+end_src * [[info:emacs#Dired][Dired: directory editor as file manager (info)]]