This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-11-21
Channels
- # announcements (10)
- # aws (10)
- # babashka (23)
- # beginners (111)
- # biff (8)
- # calva (25)
- # clj-kondo (9)
- # cljsrn (4)
- # clojure (72)
- # clojure-belgium (6)
- # clojure-europe (50)
- # clojure-germany (2)
- # clojure-nl (1)
- # clojure-norway (6)
- # clojure-uk (1)
- # datahike (3)
- # emacs (10)
- # graalvm (19)
- # graphql (3)
- # juxt (7)
- # kaocha (9)
- # malli (23)
- # nbb (20)
- # pathom (17)
- # pedestal (6)
- # polylith (11)
- # portal (8)
- # remote-jobs (3)
- # shadow-cljs (18)
- # sql (3)
- # tools-deps (20)
I opened a pr on melpa as well. I also happen to maintain the yasnippets repo for clojure, I want to port all of these to tempel in time fyi.
Maybe some of those could be done with abbrev, e.g. (define-abbrev-table 'clojure-mode-abbrev-table '(("when" "(when)" backward-char)))
would make when
expand to (when |)
(where |
is the point) - might be annoying if you type βwhenβ in a comment though π
I'd like to use more structural editing commands.. Over the past months I've gotten comfortable with slurp and barf, insert-at-end-of-list, and raise/promote. What other structural commands do ya'll use most often? (I use lispyville fwiw)
C
convolute is so kingly when you start using it and comes every now and then
c
clone into f
's into r
then ;
the old bigger form
lispy-symbol-ace, lispy-ace-paren
moving the cursor is only the simplest action to take. Use ?
to get a list. t
, x
, y
I use a lot.
lispy `x` into I end up doing a lot. It is for moving the current sexp "out"
I meant o
o
into h
/ l
.
lispy-split
I end up doing a lot for strings, wrapping str
around it and putting some variable names
lispy: when you mark symbol, <
>
and d
behave intuitively.
This is awesome when you want to select some forms together and want to raise or teleport.
Teleport is (prefix arg to get whole screen)
q
(lispy ace paren) then t
then type the cand paren.
The other way to teleport is t
when special.
While you are growing the selection from mark-symbol h
l
and i
mean "grow left" "grow right" and "shrink back"
I don't use Lispyville, but left/right movement of an "element" β a form, string, symbol etc. β is really useful
i think he means 'dragging' forms around - it's very convenient to be able to reorder elements in a list, or whole forms (ex. re-arranging divs when working with hiccup, or re-ordering expressions in threads)
for me this is via lispyville-drag-forward/backward