This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-11-24
Channels
- # aws (14)
- # beginners (111)
- # boot (12)
- # cider (1)
- # cljsrn (7)
- # clojure (65)
- # clojure-dusseldorf (1)
- # clojure-germany (7)
- # clojure-greece (10)
- # clojure-italy (13)
- # clojure-poland (7)
- # clojure-russia (7)
- # clojure-spec (53)
- # clojure-uk (29)
- # clojurescript (27)
- # community-development (9)
- # cursive (2)
- # data-science (1)
- # datomic (17)
- # emacs (16)
- # events (6)
- # fulcro (155)
- # graphql (8)
- # instaparse (1)
- # leiningen (30)
- # lumo (29)
- # om-next (3)
- # other-languages (46)
- # pedestal (11)
- # portkey (7)
- # re-frame (13)
- # reagent (6)
- # ring (8)
- # rum (1)
- # shadow-cljs (75)
- # sql (1)
- # timbre (3)
- # unrepl (128)
Hi, I’m new to emacs and I’ve installed prelude + cider. I’m looking for the “go to definition” command, i.e. when the point is on a function name, I’d like to jump to that fn. I’ve searched online and I found that it should be M-.
but this triggers “visit tags table”
M-.
is the standard shortcut to "go to definition", by default it's binded to the command xref-find-definitions
which is the one that prompts you to "visit tags table"
However when you're on a clojure file and have cider-mode active, cider remaps M-.
to cider-find-var
@jazzytomato You can check out what command is binded to a key using C-h k
, so in your case C-h k M-.
Ah, being on a clojure file (so in clojure-mode
) is not enough, you need to jack in (`C-c M-j`) to actually activate cider-mode
that’s it
:thinking_face: it’s a bit annoying if you just want to go around in projects without starting a REPL though
Yeah but I imagine you don't have a choice, since it's CIDER that brings the "go to definition" feature, and I imagine through the REPL
as a workaround I’ve installed dumb-jump
thanks for your help