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. 🤔