0

When calling

M-x bm-show-all

Emacs is in normal state. I've to push the "i" key to switch to insert then hitting Enter on a bookmark goto that bookmark. I tried this :

(use-package evil
 :ensure t
 :config
 (setq evil-set-initial-state 'bm-bookmarks-mode 'insert))

but not working. It is annoying to hit "i" to be able to go to a defined bookmark..

dalanicolai
  • 6,108
  • 7
  • 23
mcp
  • 67
  • 3

1 Answers1

0

To configure evil-insert-state as the initial state for some major-mode you can add it to the list of evil-insert-state-modes either using Emacs customization (M-x customize-variable evil-insert-state-modes) or using the following elisp:

(add-to-list 'evil-insert-state-modes 'bm-show-mode)

There exist similar variables for all other evil states.

B.t.w. evil already provides marks by itself, although they are not 'visible'. But you can make them visible using evil-visual-mark-mode. You can read about how to use evil marks at https://vim.fandom.com/wiki/Using_marks.

dalanicolai
  • 6,108
  • 7
  • 23