This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-09-24
Channels
- # announcements (6)
- # architecture (9)
- # aws (2)
- # babashka (49)
- # beginners (160)
- # boot (19)
- # calva (9)
- # cider (16)
- # clj-kondo (17)
- # cljfx (9)
- # clojure (143)
- # clojure-australia (5)
- # clojure-berlin (1)
- # clojure-czech (3)
- # clojure-europe (64)
- # clojure-france (1)
- # clojure-italy (12)
- # clojure-nl (4)
- # clojure-spec (6)
- # clojure-uk (47)
- # clojurescript (27)
- # code-reviews (5)
- # conjure (45)
- # cursive (47)
- # datascript (2)
- # datomic (21)
- # events (1)
- # fulcro (9)
- # graalvm (4)
- # graphql (2)
- # jackdaw (22)
- # jobs (3)
- # kaocha (6)
- # london-clojurians (1)
- # luminus (4)
- # malli (19)
- # meander (136)
- # pathom (4)
- # pedestal (2)
- # re-frame (15)
- # reitit (2)
- # remote-jobs (2)
- # rum (12)
- # sci (1)
- # shadow-cljs (100)
- # spacemacs (10)
- # sql (1)
- # tools-deps (30)
- # vrac (1)
- # xtdb (30)
What's the best way to change keybinding for C-M-k
? Specifically for clojure/lisp buffers.
It used to work as kill-sexp
but it doesn't work that way anymore in a clojure buffer (it still works properly in the REPL buffer);
instead it's bound to evil-mc-make-cursor-move-prev-line
which is very confusing for me and next to useless.
I tried
(global-set-key (kbd "C-M-k") 'kill-sexp)
=> has no effect (overridden?)
(define-key evil-mode (kbd "C-M-k") 'kill-sexp)
doesn't work because it needs a keymap (I don't know which one)@jumar If you are using evil editing style, then try (evil-global-set-key 'normal "C-M-k" 'kill-sexp)
to over-ride the evil keybinding for Evil normal state. Replace normal with insert if you want that keybinding to work when in Evil insert state.
Or you can use SPC k d x
to call sp-kill-sexp
, SPC k d w
to kill word and SPC k d s
to kill a symbol.
Or you can use Emacs or hybrid editing style if you do not make use of evil style editing.
Thanks for the tip - the evil-global-set-key fails though:
(evil-global-set-key 'normal "C-M-k" 'kill-sexp)
*** Eval error *** Key sequence C - M - k starts with non-prefix key C
Yeah, I mean, it works with the insert mode but what I'd like to make it work in normal mode too - for that I cannot do it it seems.
Wow, is it just me or does , e p e
(`cider-pprint-eval-last-sexp`) print records as if they were maps?
@zane the , e p
menu has keybindings that pretty print the evaluated results, added back in March https://github.com/syl20bnr/spacemacs/pull/13421
I think of Records in Clojure as custom typed maps, so not surprised they print as maps. Would be interested in seeing examples if you can share.
Thanks.