Fork me on GitHub
#cider
<
2019-10-28
>
Ian Fernandez13:10:21

people, how I use .dir-locals.el with cider?

Ian Fernandez13:10:38

I'm running the cider-jack-in-command and its not workin

Ian Fernandez13:10:03

((clojure-mode
  (cider-clojure-cli-global-options . "-A:test")))
this is mine .dir-locals.el

practicalli-johnny13:10:29

did you close and re-open your Clojure source code buffer. dir-locals is only read when opening a new buffer. So if you created your .dir-locals.el file after you opened your Clojure code it probably hasn't been read by Emacs.

practicalli-johnny13:10:23

or you can use revert-buffer which has the same effect.

dpsutton13:10:48

use nil instead of clojure-mode

dpsutton13:10:22

then you can just check the value of the var with c-h v to see if it has worked rather than do the whole cider jack in thing

bozhidar13:10:51

Well, don’t you usually run jack-in from a clojure-buffer? I really hate using major mode wildcards as those pollute all buffers.

Ian Fernandez14:10:48

I usually run jack-in from a clojure buffer, yea

bozhidar14:10:07

I’m guessing the generated command doesn’t feature this, right?

Ian Fernandez14:10:04

didn't understood what you've said

Ian Fernandez14:10:44

but the variable

cider-clojure-cli-global-options
does not have a value

dpsutton14:10:17

try running (hack-local-variables)