This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-01-15
Channels
- # babashka (13)
- # beginners (37)
- # calva (19)
- # cider (15)
- # clj-kondo (2)
- # clojure (152)
- # clojure-norway (1)
- # clojure-sweden (10)
- # clr (5)
- # emacs (19)
- # honeysql (1)
- # introduce-yourself (19)
- # joyride (1)
- # lsp (4)
- # malli (5)
- # membrane (6)
- # off-topic (11)
- # pathom (18)
- # polylith (13)
- # practicalli (3)
- # releases (4)
- # shadow-cljs (38)
I have an extra brace which paredit will not let me delete
If using Evil, r {
to select the brace and replace with a {
(or any other character required)
Or toggle paredit off, change the character and toggle paredit on again
I toggled it off to fix it 🙂
AH OK, I'll try that next-time!
any tips on how to organize custom keymaps/bindings? I started to build my own keymaps under the C-c
prefix, which sort-of works: Ideally I'd like to press C-c
and have which-key
show only those keybindings I've setup. But apparently a lot of minor modes also store their keybindings under the C-c
prefix, so instead of seeing just my own keybindings I get dozens and dozens of extra bindings.
I guess I could just add another level of nesting and store my own prefixes and bindings under C-c <some letter>
, but that seems not terribly elegant as it requires an extra key press every time
I use Doom Emacs and have a Norwegian keyboard, and I have most of my custom key bindings under SPC ø
and SPC å
.
My rationale:
1. I don't want my stuff to collide with other stuff
2. I accept a three letter chord - once ingrained in muscle memory, it goes fast enough for me.
3. Like you, I get all my actions listed after pressing SPC ø
, so I can easily see what I've got.
There are probably other approaches that work well. I tried one, haven't been unhappy with it so far, so I've stuck to it.
yeah, I've similarly bound some functions under C-ä
and C-ö
🙂 perhaps it's just easier to choose a different prefix rather than the preferred C-c
Those are rather safe choices, I would imagine
I have the following in my Emacs configuration:
(define-key input-decode-map
;; Default: \C-i => TAB
"\C-i" "\C-c")
(define-key input-decode-map
;; Default: \C-[ => ESC
"\C-[" "\C-x")
(define-key input-decode-map
;; Default: \C-m => RET
"\C-m" [C-m])
(bind-keys* :prefix [C-m] :prefix-map ctl-m-map)
(bind-keys* :prefix "C-'" :prefix-map ctl-quote-map)
(bind-keys* :prefix "C-." :prefix-map ctl-period-map)
(bind-keys* :prefix "C-;" :prefix-map ctl-semicolon-map)
If you like, you can even use C-i
, C-[
and C-m
for entirely different and new keymaps if you are okay with losing their default bindings.