Things I would like to do:
- Delete a bookmark
- Rename a bookmark
- Move a bookmark up or down
One way to do it is to replace the Elpher bookmark code with Emacs Bookmarks (C-x r m, C-x r l, C-x r b, and so on). See the Emacs manual for more. That allows me to delete and rename bookmarks.
This change has been merged!
Here is how to use it:
- use ‘M-x elpher-bookmark-import’ to import your old Elpher bookarks (use just once)
- ‘B’ is the same as ‘C-x r l’ to list all your bookmarks
- ‘A’ is the same as ‘C-x r M’ which adds a bookmark even if it one of the same name already exists
- ‘a’ is the same for the current link, or the current page if not on a link
- ‘X’ and ‘x’ are gone because you delete bookmarks from the bookmark list
Things I’ve noticed:
- ‘m’ in the bookmark list marks an entry instead of doing the ‘elpher-jump’
- ‘C-x r b’ is ‘bookmark-jump’ which is awkward to type
- when following the wrong link on the bookmark list, ‘u’ or ‘elpher-back’ doesn’t take you back to the bookmark list
- from the bookmark list, links open in *elpher* even if the bookmark list was called from *elpher<2>*
Merged
Bookmark list integration is still a bit rough. Right now I suggest the following:
(add-hook 'bookmark-bmenu-mode-hook
(lambda ()
(local-set-key (kbd "TAB") #'next-line)
(local-set-key (kbd "<backtab>") #'previous-line)
(local-set-key "j" #'bookmark-jump)
(local-set-key "m" #'bookmark-bmenu-search)
(local-set-key "M" #'bookmark-bmenu-mark)))
And if you’re not a vi user:
(add-hook 'elpher-mode-hook
(lambda ()
(local-set-key "j" #'bookmark-jump)))