Fork me on GitHub
#spacemacs
<
2018-12-24
>
practicalli-johnny09:12:08

@theeternalpulse can you explain the problem you were experiencing , sorry I am not sure I get it. I use , e f or , e ; mostly to evaluate Clojure expressions in the source code buffer. This works anywhere in the expression, no matter how nested. Are you using , e e at the end of the line instead? I only use that on the next line (or lines) below the expression as it easy to evaluate a nested expression otherwise.

theeternalpulse17:12:13

I bind this to , e e at the end of the paren without going to the next word or next line

theeternalpulse17:12:21

it's basically what lisp has for eval last sexp but for clojure. I use , e f sometimes but I have started using comment blocks for my experiments and this makes it easier.

theeternalpulse17:12:14

I'd like to include something in evil-adjust where you can specify the eval function with an alist so that this code can just determine what it should use in what mode, since by defautl evil-adjust is just for lisp

practicalli-johnny18:12:46

I use #_ to comment each expression, rather than a comment block. It allows eval by the developer and you dont have to worry about evaluating the comment block. Works very nicely in threading macros and inside any other expression

practicalli-johnny18:12:13

the comment function returns nil, where as the comment reader macro simply makes things disappear 🙂

theeternalpulse19:12:54

True, I just like the way evil-adjust works and wanted to get it to work the same for clojure. I sometimes try things out inline and I always run into wanting to eval at the end of the sexp rather than jump afterward

practicalli-johnny21:12:57

The nice thing about Emacs is you can customise it to do what ever you want 🙂