Fork me on GitHub
#emacs
<
2018-03-27
>
bozhidar00:03:00

@theeternalpulse Evaluate the file and it go to def will prefer it.

bozhidar00:03:14

No other way around this.

theeternalpulse00:03:48

Oh that makes sense

agigao08:03:37

Hey guys, how can I jump to Clojure source file?

mgrbyte08:03:02

M-. (meta/alt-dot) calls cider-find-var)

mgrbyte08:03:20

assuming you mean jump to source file from a symbol...

jumar09:03:43

or cider-find-ns assuming you want to jump to the specific namespace.

agigao09:03:03

Well, I mean to get into the source into the library. IntelliJ analog: Super + Click

mgrbyte09:03:09

I've not used IntelliJ, but I'm guess alt-dot is what you want as I described above. AFAIK there's no mouse-click shortcut.

mgrbyte09:03:39

(assuming you're using vanilla emacs not spacemacs)

jumar09:03:13

Yes, that's generally the equivalent. In spacemacs evil mode, you can use g d shortcut (go to definition) but it's the same cider-find-var command under the hood. Sometimes it's useful to list all files in a given library which you can do with cider-open-classpath-entry

agigao15:03:57

Well, it doesn’t seem to work properly. g d goes into the library file from (:require) dir, but not from the alias. for example in case of: mount.core :as m. from mount it gets into the ns, but from m or m/some function.

jumar08:03:19

I'm not following, could you explain it more clearly?

agigao09:03:03

Well, I mean to get into the source into the library. IntelliJ analog: Super + Click

Maris11:03:39

Is it possible to exclude some folders from ag search path in emacs? I also use projectile but .projectile file didn't help.

Maris11:03:03

ag-arguments ("--line-number" "--smart-case" "--nogroup" "--column" "--stats" "--")

Maris11:03:14

perhaps projectile should update this variable, add ignored folders

Maris11:03:22

I will write some plugin that does it, if nothing else helps 🙂

dpsutton12:03:43

@maris.orbidans there are several ways to ignore things in helm-ag. but i couldn't get them to work. you can see them in this function:

dpsutton12:03:15

there's agignore, helm-ag-use-grep-ignore-list. but for some reason it wasn't picking up my dir locals so i just kinda baked them in