Fork me on GitHub
#emacs
<
2018-05-18
>
bozhidar05:05:12

@dennisa Which folder do you start CIDER in? You say you’re working with Boot, but you’ve posted an error for lein not being present.

dabrazhe08:05:27

@cmack cider-jack-in fails with error above, about the lein not found. @bozhidar it runs on the folder with build.boot . It appears that Boot is not configured at all in emacs...

troglotit10:05:08

Hey! How to set clojure-mode variable once? I’m appending item to list, so I don’t want to append on every hook

bozhidar10:05:29

> @cmack cider-jack-in fails with error above, about the lein not found. @bozhidar it runs on the folder with build.boot . It appears that Boot is not configured at all in emacs...

bozhidar10:05:36

There’s nothing to configure really - CIDER detects the project type and runs the appropriate command to start an nREPL server. If multiple project files are detected you should get asked about the project type to use. That’s why I’m really puzzled by your problem.

bozhidar10:05:37

You can see the troubleshooting section of the manual and debug cider-jack-in. Then you’ll easily see what goes wrong with the project type detection.

bozhidar10:05:44

> Hey! How to set clojure-mode variable once? I’m appending item to list, so I don’t want to append on every hook

bozhidar10:05:59

@troglotit Can you give us an idea about what you’re trying to do?

troglotit10:05:30

something like this (add-to-list 'clojure-align-binding-forms "r/with-let") but only once and when variable is ready

dabrazhe13:05:43

@bozhidar Perhaps I need to specify the project i'm working in somehow? Or designate it to open the right build.boot? In Atom I have to open the project folder and repls starts using build.boot. How will emacs know about any build tool when I work on the .clj file deep in the scr hierarchy?

bozhidar14:05:04

> How will emacs know about any build tool when I work on the .clj file deep in the scr hierarchy?

bozhidar14:05:40

It will find the project root automatically by going up the directory tree from the file you’ve opened.

bozhidar14:05:52

@troglotit You’re looking for eval-after-load.

troglotit14:05:58

should I use it like (eval-after-load "clojure" my-fun)?

caio19:05:14

@dpsutton it doesn't work with project 😕 apparently the active filters are different and don't work in the default-filters var

caio20:05:54

from the docs: Error buffer stacktraces may be filtered by default. Valid filter types include java, clj, repl, tooling, and dup. Setting this to nil will show all stacktrace frames.

caio20:05:00

another doubt I have for a while now and never figured out how to fix it: how do I make cider understand reader macros from libraries? it's a pain every time I want to format an edn buffer that has a reader macro we use here

dpsutton20:05:25

That documentation is probably out of date. But project is different because it's a "positive" filter

caio20:05:58

yep. I tried doing what you said before and it didn't work. it's the same as nil

caio20:05:47

I know I can probably add a hook to the stacktrace-mode and call the same fn that p does, but I was looking for a cleaner alternative 😞

dpsutton20:05:08

If you file an issue I can work on it. Might be tricky to work out an intuitive interaction

caio21:05:57

wow, wtf. I opened on a random repo

caio21:05:59

hahahaha