This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-10-24
Channels
- # aws (2)
- # babashka (27)
- # beginners (97)
- # calva (1)
- # cherry (12)
- # cider (6)
- # clara (12)
- # clj-kondo (24)
- # clj-on-windows (4)
- # cljfx (14)
- # clojure (54)
- # clojure-australia (3)
- # clojure-europe (26)
- # clojure-nl (1)
- # clojure-norway (4)
- # clojure-uk (9)
- # clojurescript (65)
- # conjure (5)
- # cursive (7)
- # datomic (18)
- # emacs (6)
- # helix (2)
- # honeysql (1)
- # jobs (1)
- # joyride (15)
- # kaocha (2)
- # lsp (10)
- # malli (5)
- # nbb (12)
- # observability (5)
- # off-topic (5)
- # reitit (2)
- # releases (4)
- # ring (1)
- # sci (17)
- # shadow-cljs (34)
- # testing (29)
- # tools-deps (45)
- # vim (7)
- # xtdb (6)
[EDIT - solved] Emacs/Spacemacs making me a bit crazy today. Anyone see what I'm doing wrong here? I'm defining a general binding for M-<up> like so:
(define-key evil-normal-state-map (kbd (right-mod "<up>"))
#'(lambda () (interactive) (jump-to-same-indent -1)))
And a different binding in org-mode like so:
(evil-define-key '(normal insert) 'org-mode-map
(kbd "M-<up>") 'outline-backward-same-level)
But the org-mode bindings are showing up in all modes. If on the other hand I wrap the org-mode binding like
(with-eval-after-load 'org-mode
(evil-define-key '(normal insert) 'org-mode-map
(kbd "M-<up>") 'outline-backward-same-level))
then the non org-mode bindings apply everywhere, including org-mode buffers.
Anyone have a clue for me?if you try the evil-define-key
without quoting 'org-mode-map
then I don't think you'll see this binding showing up in all modes
you don't need to do the with-eval-after-load
thing because evil-define-key already handles this:
> If `foo-map' has not been initialized yet, this macro adds an
> entry to `after-load-functions', delaying execution as necessary.
> you don't need to do the with-eval-after-load
thing because evil-define-key already handles this:
That's what I expected, just casting around since it wasn't working
> if you try the evil-define-key
without quoting 'org-mode-map
then I don't think you'll see this binding showing up in all modes
Ahhhh that makes total sense and now I see that that matches the evil-define-key
docs.
<testing>