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?

  • 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
    Commented Sep 17, 2020 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
    Commented Sep 17, 2020 at 12:23
  • Yes, that is most certainly the problem. Please tag your question accordingly and consider asking on their Discord channel.
    – wasamasa
    Commented Sep 17, 2020 at 13:32

1 Answer 1


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

 :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 and acknowledge you have read our privacy policy.

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