In normal mode I can't jump to definition with ternjs or cider modes. I have to go to insert then hit M-.
Is that the evil way? Should I have M-. bound to another function that checks what mode you are in and does the proper thing accordingly?
Emacs Stack Exchange is a question and answer site for those using, extending or developing Emacs. It only takes a minute to sign up.Sign up to join this community
Just found out you can use set-key-for-mode. Seems to be just what I wanted.
(evil-leader/set-key-for-mode 'clojure-mode "." 'cider-find-dwim "," 'cider-pop-back "<SPC>j" 'cider-jack-in "<SPC>t" 'cider-test-run-test "er" 'cider-eval-region "ee" 'cider-eval-last-sexp "ex" 'cider-eval-last-sexp-and-replace "eb" 'cider-eval-buffer "<SPC>d" 'cider-doc)