Trying to solve the problem of hotkeys for bookmarks I decided to create a primitive version first. I wanted to attach bookmarks to keys
<2>: when a certain key is pressed, I open the appropriate bookmark. But unfortunately the hook is not called when bookmarks list is opened. I have different functions bound to these keys:
- 1 - bookmark-bmenu-1-window
- 2 - bookmark-bmenu-2-window
(defun jump-to-1th-bookmark () (bookmark-jump "2015.txt")) (defun jump-to-2nd-bookmark () (bookmark-jump "emd")) (defun my-bookmark-mode () (local-set-key (kbd "1") 'jump-to-1th-bookmark) (local-set-key (kbd "2") 'jump-to-2nd-bookmark) ) (add-hook 'bookmark-bmenu-mode 'my-bookmark-mode)
How can I bind my functions instead of default?