This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-07-07
Channels
- # aleph (1)
- # announcements (1)
- # babashka (3)
- # beginners (89)
- # biff (5)
- # cider (25)
- # clj-kondo (2)
- # cljs-dev (10)
- # clojure (57)
- # clojure-brasil (2)
- # clojure-europe (35)
- # clojure-norway (4)
- # clojure-uk (1)
- # clojurescript (2)
- # cursive (3)
- # datomic (11)
- # dev-tooling (4)
- # events (1)
- # hyperfiddle (16)
- # malli (10)
- # polylith (19)
- # releases (2)
- # slack-help (6)
- # xtdb (8)
ℹ️ we've released refactor-nrepl / clj-refactor.el 3.7.1, with @dgtized's priceless contributions.
If you are a cljr-slash
fan, you can try its revamped version by customizing cljr-slash-uses-suggest-libspec t
.
For instance, if you type priority/
, you will now get .cljc completions when suitable:
#?(:clj [clojure.data.priority-map :as priority]
:cljs [tailrecursion.priority-map :as priority])
There's smart, well-tested logic behind.
This is still beta - feedback welcome!How to bind key for cider in doom emacs? I have the following: (map! :prefix "SPC e" "e" #'cider-eval-defun-at-point) But it doesn't work. Plus I think I may need to add something else to make ti works while in clojure file or something. I want to bind SPC e e
On your doom installation folder (usually ~/.emacs.d
), go to modules/lang/clojure/config.el
for some examples!
Does :localleader means SPC m (by default) ?
Is localleader something defined in doom emacs or specific to cider?
Ok, and spc m is local leader as a mode for keybinding
Not specific to cider
(map! (:localleader
(:map (clojure-mode-map clojurescript-mode-map clojurec-mode-map)
"'" #'cider-jack-in-clj
This means that, when clojure-mode
is active, , '
will invoke cider-jack-in-clj
So if I want to map spc e e, it would be (map! :leader :prefix "e" "e" #'fx)
For leader definitions, you can find examples under modules/config/default/+evil-bindings.el
Great it works, thanks a lot!
But note that a leader will always be active (i.e. SPC e e
will try to invoke cider even if you’re visiting a markdown file)
Yes I know, I wanted to remap because spc e e makes more sens to me
And if I understand properly, this: (:map (clojure-mode-map clojurescript-mode-map clojurec-mode-map) means that it loads the map only when it is clojure?
Oh seems like not... have to find that
I suppose it is because I would need to use the localleader?
Yes, but indirectly. It adds the bindings to those keymaps… which are only active when their respective modes are active
https://github.com/practicalli/doom-emacs-config/blob/main/%2Bclojure.el has lots of examples of key bindings for Clojure There are other key bindings in +bindings.el file