1
0
Fork 0
mirror of https://gitlab.com/dwt1/dotfiles.git synced 2023-02-13 20:55:19 -05:00

Minor edits to the bookmark section of Doom config.

This commit is contained in:
Derek Taylor 2023-01-14 09:17:08 -06:00
parent d9fbe0bd9f
commit 3da07cb4fe
2 changed files with 15 additions and 0 deletions

View file

@ -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)

View file

@ -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