Does anyone know a structural editing package that treats pairs in a map / let binding as a single unit? I just had a look at Calva and was impressed to see its implementation of paredit handle this nicely: https://calva.io/paredit/#drag-bindings-forwardbackward
Pretty cool, indeed! Outside of a generic solution, I assume it won’t be very hard to do this in clojure-mode
.
ie. I never realised how much I needed these commands, always resorting to textual editing when dealing with pairs
I saw something like that in emacs, quite some time ago... I'm struggling to recall the name of it
I wanted to use it, tried it, and couldn't get it to work... there was a youtube video
I'll try to track it down
Nice! I've got to check that out (and see if I can hook into it from lispyville-drag instead of relearning another system 😛)
I was lacking this quite badly in some cond->
forms today. 😃
Is there a way to interactively change a font face and browse the different options while seeing what they look like? I'm looking to change the clojure-keyword-font-face
customize-group just gives me a text field for the font face to use
I use Ivy which provides M-x counsel-faces
it gives an interactive completion list showing what they all look like, and forwards to describe-face
when you select any one
cool, thanks!
it just worked for emacs-lisp, but for Clojure it seems to be broken
spacemacs/helm-faces
for the same kind of thing with helm and Spacemacs
Ahh. It was just missing implicit functions and structures for Clojurescript
copying the one for Clojure works fine
yay! Thanks for the tip
(use-package paxedit
:commands (paxedit-mode)
:hook (paredit-mode . paxedit-mode)
:bind (:map paxedit-mode-map
("M-<right>" . paxedit-transpose-forward)
("M-<left>" . paxedit-transpose-backward))
:config
(let ((paxedit-implicit-clojure '(paxedit-implicit-functions-clojure
paxedit-implicit-structures-clojure)))
(add-to-list 'paxedit-assoc `(clojurescript-mode . ,paxedit-implicit-clojure))
(add-to-list 'paxedit-assoc `(clojurec-mode . ,paxedit-implicit-clojure))))
For those who wants to try paxedit mentioned aboveIt worked just fine with Clojure, but I thought it didn’t because I was in clojurescript context when I tried it
apparently there’s a PR from a year ago to fix it