This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-10-11
Channels
- # announcements (1)
- # babashka (132)
- # beginners (52)
- # calva (46)
- # clj-kondo (8)
- # cljdoc (17)
- # clojure (13)
- # clojure-australia (1)
- # clojure-dev (3)
- # clojure-europe (4)
- # clojurescript (4)
- # cloverage (1)
- # conjure (22)
- # datomic (9)
- # emacs (2)
- # fulcro (16)
- # leiningen (5)
- # malli (26)
- # off-topic (16)
- # pathom (3)
- # portal (5)
- # reagent (10)
- # reitit (5)
- # rewrite-clj (1)
- # ring (1)
- # shadow-cljs (14)
- # spacemacs (6)
- # tools-deps (10)
- # vim (11)
- # vscode (1)
- # xtdb (10)
Just discovered that avy has some additional capabilities hidden under a context menu that can be accessed with ?
after selecting a target. Super useful.
https://github.com/abo-abo/avy/blob/36f768d9e320d300b81799e0fcc097cb89aad780/avy.el#L170...L178
Interesting. I used teleport and it moved the selected target to the location of the cursor (point), that was fun 🙂 I've created an issue to add this to the book, thanks https://github.com/practicalli/spacemacs-content/issues/277
I added “change” in my personal config:
(use-package avy
:after evil
:config
(defun avy-action-change (pt)
"Kill sexp starting on PT and enter insert-mode."
(avy-action-kill-move pt)
(evil-insert 1))
(setq avy-dispatch-alist
'((?c . avy-action-change)
(?x . avy-action-kill-move)
(?X . avy-action-kill-stay)
(?t . avy-action-teleport)
(?m . avy-action-mark)
(?n . avy-action-copy)
(?y . avy-action-yank)
(?i . avy-action-ispell))))