This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-08-14
Channels
- # architecture (19)
- # beginners (3)
- # calva (2)
- # cherry (2)
- # clj-kondo (2)
- # clojure (58)
- # clojure-europe (15)
- # clojure-norway (1)
- # conjure (1)
- # data-oriented-programming (9)
- # data-science (10)
- # emacs (9)
- # hyperfiddle (1)
- # nbb (9)
- # off-topic (1)
- # shadow-cljs (24)
- # sql (14)
- # squint (58)
- # testing (13)
- # xtdb (10)
is there a paredit action that can move an sexp "left"/"right"? Example:
;; from
(defn link? [el]
(= (get el "t")
#_cursor "Link"))
;; to
(defn link? [el]
(= "Link"
(get el "t")))
option: transpose-sexps
:
(defn link? [el]
(= "Link"
;; M-x transpose-sexps
(get el "t")))
Calva has "drax sexp backward/forward". This is exactly what I'm looking for! https://calva.io/paredit/
Can't find anything like "drag sexp" in http://danmidwood.com/content/2014/11/21/animated-paredit.html either.
Couldn't find anything in the https://raw.githubusercontent.com/joelittlejohn/paredit-cheatsheet/master/paredit.pdf either.
I think drag forward would be transpose-sexprs
and drag backward would be transpose-sexprs
with a negative prefix. (i.e. drag-forward=C-M-t, drag-backward C-- C-M-t)
Going to try and work on this https://github.com/clojure-emacs/cider/issues/3231#issuecomment-1200686301 again in an hour or two if anyone wants to pair (maybe on discord?). I keep getting distracted by my complete lack of understanding of any beyond a superficial understanding of emacs and elisp 😆