From 3da07cb4fe21c34d6050d25392d8fb5e81483872 Mon Sep 17 00:00:00 2001 From: Derek Taylor Date: Sat, 14 Jan 2023 09:17:08 -0600 Subject: [PATCH] Minor edits to the bookmark section of Doom config. --- .config/doom/config.el | 4 ++++ .config/doom/config.org | 11 +++++++++++ 2 files changed, 15 insertions(+) diff --git a/.config/doom/config.el b/.config/doom/config.el index be4b4f9..07d4959 100644 --- a/.config/doom/config.el +++ b/.config/doom/config.el @@ -1,8 +1,12 @@ (beacon-mode 1) +(setq bookmark-default-file "~/.config/doom/bookmarks") + (map! :leader (:prefix ("b". "buffer") :desc "List bookmarks" "L" #'list-bookmarks + :desc "Set bookmark" "m" #'bookmark-set + :desc "Delete bookmark" "M" #'bookmark-set :desc "Save current bookmarks to bookmark file" "w" #'bookmark-save)) (global-auto-revert-mode 1) diff --git a/.config/doom/config.org b/.config/doom/config.org index be2857c..a510dbb 100644 --- a/.config/doom/config.org +++ b/.config/doom/config.org @@ -74,10 +74,21 @@ Doom Emacs uses 'SPC b' for keybindings related to bookmarks and buffers. ** Bookmarks Bookmarks are somewhat like registers in that they record positions you can jump to. Unlike registers, they have long names, and they persist automatically from one Emacs session to the next. The prototypical use of bookmarks is to record where you were reading in various files. +| COMMAND | DESCRIPTION | KEYBINDING | +|-----------------+----------------------------------------+------------| +| list-bookmarks | /List bookmarks/ | SPC b L | +| bookmark-set | /Set bookmark/ | SPC b m | +| bookmark-delete | /Delete bookmark/ | SPC b M | +| bookmark-save | /Save current bookmark to bookmark file/ | SPC b w | + #+BEGIN_SRC emacs-lisp +(setq bookmark-default-file "~/.config/doom/bookmarks") + (map! :leader (:prefix ("b". "buffer") :desc "List bookmarks" "L" #'list-bookmarks + :desc "Set bookmark" "m" #'bookmark-set + :desc "Delete bookmark" "M" #'bookmark-set :desc "Save current bookmarks to bookmark file" "w" #'bookmark-save)) #+END_SRC