- Add the following to .spacemacs:
(defun my-bookmark-set (char)
(interactive "cPlease enter a bookmark name to set: ")
(bookmark-set (char-to-string char)))
(defun my-bookmark-jump (char)
(interactive "cPlease enter a bookmark name to jump to: ")
(bookmark-jump (char-to-string char)))
(define-key evil-normal-state-map (kbd "'") 'my-bookmark-jump)
(define-key evil-normal-state-map (kbd "m") 'my-bookmark-set)
Set a bookmark a with C-x r m a or ma, and quit and restart emacs
Navigation to bookmark a fails with "Invalid bookmark a" displayed
'a
- Navigation to bookmark a succeeds
C-x r b a
Move cursor to another location
Navigation to bookmark a succeeds
'a
Why does the action at step 3. fail, when at step 6. and subsequently it succeeds?