Fork me on GitHub
Karol Wójcik08:11:07

Does anyone experience the issue which causes the $ to move to the end line (which is the last paren)? 1L (some-call) <-- here the cursor goes while it should be on (some call)_HERE Previously $ was moving the cursor to the 1 character after the last sign on the line.


@karol.wojcik In Evil normal state, by default the cursor (point) stops on top of the last character in the line. So in Clojure the cursor is sat on top of the last paren. I believe there is an Emacs package that can be added to change this behaviour, but don't recall its name, sorry. You don't need to be at the end of a line to evaluate the whole expression in Evil normal state, , e f will evaluate the top level of the current expression regardless of where in that expression the cursor is. Or you can go to the next line after the expression and use , e e. , e ; will also evaluate the top level of the current expression, just like , e f and return the result as a comment.


It would be nice if there was a command to send in the form what you are on, essentially the closest parent node.

👍 4

(boom (inc 1))


so that if my cursor is anywhere on (inc 1) (closing/opening parens included) it would return 2


, e v is the closest thing, you can stand on the beginning of the form ( to eval the whole sexp

Karol Wójcik11:11:52

@jr0cket But wait before it was working the way I described. Hmm maybe because of the package you mentioned. Now , e e does not make sense in Clojure ;/ if used in conjuction with evil-mode


I find , e e to evaluate the previous expression very useful. I use it all the time. It's also useful within a nested expression where I just want to understand that part. As mentioned I also use , e f and , e ; and of course the excellent Cider debugger, , d b quite a lot too... I appreciate you may be used to a different pattern of operation and that change can be hard to change. There are many other commands I haven't really used in Cider.


, e v is the closest thing, you can stand on the beginning of the form ( to eval the whole sexp

Karol Wójcik15:11:09

@jr0cket That's an answer! Thanks for help!


Ah, that was it. Yes, never used that as to me it just breaks the way I use Evil.


anybody else seeing flycheck-clj-kondo errors when displayed as tooltip missing trailing chars?

Karol Wójcik19:11:50

Not related, but what's the name of the theme?


It’s just the default spacemacs one