This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-07-19
Channels
- # aleph (1)
- # announcements (3)
- # aws (1)
- # beginners (95)
- # calva (15)
- # clojars (4)
- # clojure (84)
- # clojure-android (3)
- # clojure-austin (1)
- # clojure-chicago (1)
- # clojure-dev (66)
- # clojure-europe (3)
- # clojure-italy (15)
- # clojure-nl (13)
- # clojure-uk (33)
- # clojuredesign-podcast (9)
- # clojurescript (6)
- # cursive (68)
- # data-science (4)
- # datavis (1)
- # datomic (13)
- # emacs (4)
- # fulcro (2)
- # jobs (4)
- # jobs-discuss (89)
- # luminus (23)
- # nrepl (6)
- # off-topic (2)
- # onyx (2)
- # pathom (4)
- # pedestal (11)
- # re-frame (9)
- # reagent (8)
- # reitit (5)
- # shadow-cljs (131)
- # spacemacs (13)
- # sql (8)
- # vim (8)
- # xtdb (7)
- # yada (4)
I have an issue where when I do , e e
to run cider-eval-last-sexp
, when I'm in normal mode, with the cursor on the last param, it doesn't run that sexp, but instead the last form inside it. It is because it seems cider wants the cursor to be one more to the right, except normal mode doesn't allow you to put the cursor there.
@didibus Use , e e
on the next line down from your expression, this is the simplest possible approach
(press j
first and 0
if the next line contains code and you are not at the start of the line)
Or you can use , e f
to evaluate from the top level of the current sexp / form from anywhere inside the sexp
You can also use , e ;
anywhere in an expression to evaluate from the top level of the current sexp/form and give the answer as a comment rather that a temporary display.
Espcially since in emacs-lisp mode, , e e
with cursor over the ending parens evaluates the sexp
I think I configured spacemacs to allow to move beyond the last character because of this...
@didibus It should be the evil-move-beyond-eol
var
@didibus seems odd to me if in eLisp major mode that , e e
would evaluate the current expression when its the last and the previous expression in all other cases. How would you ever evaluate the last but one expression without adding a space?
The function is evaluating the last expression and not the current one, otherwise the function should be renamed