0

I want to remap evil-ex-search-previous to some other key than ,. I tried

(define-key evil-motion-state-map "," 'evil-avy-goto-char-in-line)
(evil-define-key 'normal magit-mode-map "," 'evil-avy-goto-char-in-line)
(evil-define-key 'visual magit-mode-map "," 'evil-avy-goto-char-in-line)

However none of it worked. Using which key I see, that , is still bound to the old key. How can I change this?

3
  • What in the first place would map it to ,? That's certainly not the default. Generally, check out evil-maps.el for such questions. – wasamasa Sep 17 '20 at 6:23
  • I use doom-emacs, it may have something to do with this emacs configuration, but I don't know where I should look. – Rareform Sep 17 '20 at 12:23
  • Yes, that is most certainly the problem. Please tag your question accordingly and consider asking on their Discord channel. – wasamasa Sep 17 '20 at 13:32
0

I asked on discord channel and after some thinking the working solution specific to doom-emacs which I received is

(map!
 :nvm "," #'evil-avy-goto-char-in-line
 :desc "go to next char")

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.