ankit's Blog

ankit's Avatar Image
Always looking for ways to integrate #emacs in life.

#emacs #guile #go #selfhosted
← All posts

I’m trying to map the same key-binding for two different purposes based on the mode.

(evil-define-key ‘normal ‘compilation-mode-map

(kbd "<leader>me") 'consult-compile-error)

(evil-define-key ‘normal ‘flymake-mode-map

(kbd "<leader>me") 'consult-flymake)

But for some reason, even in compilation-mode with flymake explicitly disabled, consult-flymake is being called. 🤔

To like or reply, open original post on Emacs.ch