This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2015-06-09
Channels
- # admin-announcements (74)
- # beginners (10)
- # boot (3)
- # cider (3)
- # clojure (94)
- # clojure-brasil (7)
- # clojure-czech (9)
- # clojure-france (4)
- # clojure-nl (2)
- # clojure-russia (50)
- # clojure-sg (7)
- # clojure-uk (1)
- # clojure-ukraine (1)
- # clojurescript (244)
- # core-async (1)
- # datomic (13)
- # editors (28)
- # euroclojure (9)
- # jobs (6)
- # ldnclj (78)
- # off-topic (12)
- # onyx (16)
- # reading-clojure (1)
- # reagent (10)
- # sneer (2)
- # sydney (1)
Q for emacs/spacemacs users: what's the right sequence of commands to wrap an expression into a let
block? For instance, i have (something blah)
, and I need to turn it into (let [s (something blah)])
- so far I can think of "slurp forward", then "visually select between parens" and "surround with [", but that feels clunky. What say you, Emacs wizards?
@peterbak: there’s clj-refactor, which can do these kinds of things (I’ve heard)
you introduce let: https://github.com/clojure-emacs/clj-refactor.el/blob/master/examples/introduce-let.gif
you might need to expand it: https://github.com/clojure-emacs/clj-refactor.el/wiki/cljr-expand-let
we just cleaning up the documentation at the moment perhaps moving stuff from the readme to the wiki
I use nothing but slurp
. 😄
☕ & 🍺 ;D
little late to the party, but for that let thing, I'd just put my cursor at the beginning of (something blah)
, type (let [s
and slurp twice.
How do I change the color for "... cannot be resolved"? I want it to be really visible
borkdude: Hmm, looks like you can’t configure that right now. I’ll fix that so you can set it using an inspection config.