This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-05-05
Channels
- # announcements (7)
- # babashka (20)
- # beginners (130)
- # bristol-clojurians (1)
- # cider (14)
- # clj-kondo (7)
- # cljdoc (14)
- # cljs-dev (15)
- # cljsrn (16)
- # clojars (11)
- # clojure (190)
- # clojure-dev (4)
- # clojure-europe (7)
- # clojure-italy (9)
- # clojure-nl (3)
- # clojure-romania (6)
- # clojure-uk (51)
- # clojurescript (44)
- # component (4)
- # conjure (28)
- # cursive (1)
- # data-science (4)
- # datascript (1)
- # datomic (30)
- # duct (4)
- # emacs (1)
- # figwheel (4)
- # fulcro (56)
- # graalvm (4)
- # helix (51)
- # jackdaw (2)
- # jobs-discuss (12)
- # joker (4)
- # lambdaisland (1)
- # local-first-clojure (1)
- # meander (73)
- # mid-cities-meetup (2)
- # nrepl (4)
- # off-topic (43)
- # pathom (56)
- # re-frame (37)
- # reagent (26)
- # shadow-cljs (161)
- # slack-help (9)
- # spacemacs (1)
- # tools-deps (18)
- # xtdb (18)
dang, is eval at mark ever useful … I set up little test forms in (comment ,,,)
and can just eval fn eval test eval fn eval test so quickly.

I find when I have a test callsite and like four functions involved it works great. I hop between working on parts of the tree of function calls, testing it with one mapping.
Should the HUD pop up while you're evaluating a form to replace it? :thinking_face: I have form replace eval working btw 😄
Also, should I move the cursor to the start of the replaced text? If I do, it'll be annoying with long evals since your cursor gets yanked around.
Without moving the cursor: https://asciinema.org/a/615hmksNOJEIopVg8pK7a5L4K With moving the cursor: https://asciinema.org/a/xHUcFIqr5nlCzzR3bnRUBW0KT Thoughts?
I'm going to optimise the UX for quick evaluations with long evals being the edge case that still isn't that bad.
So that means suppressing the HUD and moving the cursor for you, I think it's better on average.
+1 bonus points if you can get the result to blink so that it's super obvious what was inserted 🙂
Pushed to develop! Check out :help conjure
for the info on it and config for the mapping.
<prefix>e!
will replace the form under your cursor with the result of the eval (in Fennel or Clojure!). It'll move your cursor to the start of the result. You can leave the window after starting the eval and it will still work. If you edit the buffer after you start the eval though... all bets are off.
If you want to evaluate a single word rather than a form, I'm afraid you'll have to wrap it in a (do ...)
for now, I haven't got a mapping for anything other than current form since I think that's the main use case.
If having "insert result of eval at mark here" is a thing that would be suuuuper useful for a lot of people I'll have to give it a rethink.