Fork me on GitHub
#cider
<
2019-03-01
>
markw05:03:36

quick question - when jumping to definition M-. is there a way to avoid being prompted for a symbol? Even when there is a matching definition, I still get a prompt for a symbol where the default is set to the symbol at point, requiring me to press enter every time I try to jump to a definition.

markw05:03:42

I know it’s trivial - but having to prss enter to confirm the default every single time is annoying

markw05:03:42

possible - but the behavior I get is that the minibuffer displays Symbol: (default "symbolatpoint")

markw05:03:43

so all i have to do is press enter - in the example above it looks like they were getting no default

markw05:03:04

connection dropped so those sentences are out of order - first one should be last

markw05:03:20

I would expect that M-. would just take you to the symbol at point if there is one, and ask if not. Instead, it asks every time (but pre-fills with the symbol at point as default so I only have to press enter immediately after M-.)

markw06:03:12

looks like C-u M-. does what I want…

dominicm07:03:56

That's more keys! 😀

cichli09:03:23

You can (setq cider-prompt-for-symbol nil)

cichli09:03:55

Then the C-u behaviour is reversed

per.weijnitz27215:03:57

Is there a Cider function to interrupt a long running eval and have it start the debugger at the currently running point in the program where the interrupt occured? cider-interrupt alone does not seem to have this function.

rob70416:03:21

I see that you can write a macro with {:style/ident ...} metadata to control indentation. But how do you association an indentation spec with a macro that wasn't written with one originally? For example, clojure.algo.monads/domonad.

dpsutton16:03:14

add-custom-clojure-indents in clojure-mode

rob70416:03:49

I looks like it doesn't understand namespaces, but it's better than nothing.