An opinionated Transient-based user interface for the Emacs Bookmark list.
If installed via MELPA then add these lines to your Emacs initialization file with your binding of preference.
(require 'casual-bookmarks) ; optional if using autoloaded menu
(keymap-set bookmark-bmenu-mode-map "C-o" #'casual-bookmarks-tmenu)
Use these keybindings to configure bookmark list to be consistent with keybindings used by Casual Bookmarks.
(keymap-set bookmark-bmenu-mode-map "J" #'bookmark-jump)
Casual Bookmarks also includes the keymap casual-bookmarks-main-menu
which inserts a Bookmarks menu into the main menu bar as shown below.
To enable this, add the following configuration to your initialization file.
(require 'casual-bookmarks)
(easy-menu-add-item global-map '(menu-bar)
casual-bookmarks-main-menu
"Tools")
While not necessary, having the current bookmark highlighted is convenient. Enable hl-line-mode
for the bookmark list as shown below.
(require 'hl-line)
(add-hook 'bookmark-bmenu-mode-hook #'hl-line-mode)
Finally, customize the variable bookmark-save-flag
to the value 1
to ensure that your bookmark changes are always saved.
The above guidance largely extends the work done in the blog post Using Bookmarks in Emacs like you do in Web Browsers.
By enabling “Use Unicode Symbols” from the Settings menu, Casual Bookmarks will use Unicode symbols as appropriate in its menus. The following mapping is shown in the table below:
Name | Plain | Unicode |
---|---|---|
:previous | Previous | ↑ |
:next | Next | ↓ |
:jump | Jump | 🚀 |
:beginning-of-buffer | Beginning | ⤒ |
:end-of-buffer | End | ⤓ |
:backward | Backward | ← |
:forward | Forward | → |
:narrow | Narrow | →← |
:widen | Widen | ←→ |
If you enjoy using Casual Bookmarks, consider making a modest financial contribution to help support its development and maintenance.