Fork me on GitHub
#spacemacs
<
2018-05-26
>
kurt-o-sys10:05:35

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?

kurt-o-sys12:05:26

#+BEGIN_SRC clojure :results value
  4544 
  \a 
  "a"
#+END_SRC

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

kurt-o-sys12:05:06

(when using the cljs connection - clj works fine)

orestis12:05:56

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?

4
troglotit13:05:19

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
troglotit13:05:32

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

orestis13:05:23

Thanks! That did it 🙂

practicalli-johnny10:05:25

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.

pablore19:05:19

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.