This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-07-31
Channels
- # beginners (9)
- # boot (38)
- # cider (7)
- # cljs-dev (181)
- # cljsrn (49)
- # clojure (136)
- # clojure-italy (44)
- # clojure-losangeles (1)
- # clojure-news (1)
- # clojure-russia (3)
- # clojure-sanfrancisco (1)
- # clojure-serbia (2)
- # clojure-spec (28)
- # clojure-uk (41)
- # clojure-ukraine (1)
- # clojurescript (103)
- # core-async (6)
- # core-logic (46)
- # cursive (5)
- # data-science (8)
- # datascript (6)
- # datomic (5)
- # emacs (35)
- # events (3)
- # jobs (2)
- # jobs-rus (2)
- # juxt (6)
- # lumo (7)
- # off-topic (101)
- # om (6)
- # onyx (6)
- # parinfer (38)
- # pedestal (5)
- # perun (1)
- # planck (4)
- # protorepl (4)
- # re-frame (62)
- # reagent (20)
- # remote-jobs (1)
- # ring-swagger (1)
- # spacemacs (16)
- # unrepl (43)
- # vim (13)
Anyone aware of a way to delete a sexp? That is, to delete it without copying it to the kill-ring? Sometimes I just want something gone forever.
I’ve been trying to even come up with a way to do it with an emacs lisp fn…I haven’t found a way to kill-into-register, which would work; nor have I found a way to select a sexp (which would mean I could use delete-region
).
eggsyntax to select lists anyway i frequently use %
in visual mode
Yeah, that's what I'm currently doing for delete (along with delete-region
). But it's not a true sexp operation like kill-sexp
is (eg won't work for a keyword, even though a keyword is a valid sexp).
eggsyntax as for elisp, perhaps a simple function that calls kill-sexp and then pops the kill ring?
Oh, hey, brilliant -- totally didn't think of that, I think that's exactly the optimal solution.
(defun delete-sexp ()
(interactive)
(evil-lisp-state-sp-kill-sexp)
(pop kill-ring))
my pleasure. thank you for the elisp opportunity :-)
ha, excellent name
how did I not know about this channel ?!