Fork me on GitHub

I'm using spacemacs org mode with source code blocks. All seems to work fine, except source code blocks of clojurescript: only the first line is evaluated, not the rest. When starting clojurescript jack-in, a clj repl and cljs repl are started as expected. 1. evaluating multiline clojure works fine (all the results are shown in the #+RESULTS block) 2. evaluating a single line cljs works fine as well (the result is shown in the #+RESULTS block) 3. evaluating multiline cljs - only the result of the first line is shown) Anyone any idea what the problem could be?


#+BEGIN_SRC clojure :results value

: 4544
any idea why only the first line is evaluated?


(when using the cljs connection - clj works fine)


When in Evil mode, using cider-eval-last-sexp is problematic — I always have to move my cursor to the right of the sexp (by adding an extra piece of whitespace). Is there a fix for that?


evil-move-beyond-eol is a variable defined in ‘evil-vars.el’. Its value is t Original value was nil Documentation: Whether the cursor is allowed to move past the last character of a line. You can customize this variable.

👍 12

that’s the variable which will help with moving eol when hitting $


Thanks! That did it 🙂


I changed to moving the cursor to the next line, then evaluating. I typically have at least one blank line between forms. I also use , e f more often to evaluate without going to end of lie or , e ; to evaluate and return answer as comment.


So this morning, after updating, spacemacs is getting this error:

Warning (initialization): An error occurred while loading ‘/home/mago/.emacs.d/init.el’:

error: Unable to activate package ‘clojure-cheatsheet’.
Required package ‘cider-0.9.0’ is unavailable

To ensure normal operation, you should investigate and remove the
cause of the error in your initialization file.  Start Emacs with
the ‘--debug-init’ option to view a complete error backtrace.