This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-03-30
Channels
- # aws (4)
- # beginners (143)
- # boot (37)
- # cider (31)
- # cljs-dev (53)
- # clojure (303)
- # clojure-conj (5)
- # clojure-dev (106)
- # clojure-dusseldorf (2)
- # clojure-greece (3)
- # clojure-italy (23)
- # clojure-spec (83)
- # clojure-uk (7)
- # clojurescript (328)
- # core-async (25)
- # cursive (2)
- # datascript (2)
- # datomic (3)
- # emacs (10)
- # hoplon (1)
- # jobs (2)
- # lein-figwheel (1)
- # leiningen (13)
- # luminus (6)
- # off-topic (38)
- # onyx (2)
- # parinfer (13)
- # pedestal (2)
- # portkey (5)
- # re-frame (11)
- # reagent (2)
- # shadow-cljs (61)
- # specter (6)
- # unrepl (60)
- # vim (4)
I am trying to setq
clojure-refactor-map-prefix
but it seems like no keybinding works
is this usually the right way? (setq clojure-refactor-map-prefix "C-c M-f")
Not sure, I'm guessing you probably want something like this
(eval-after-load "clojure-mode"
'(progn
;; Make TAB use auto-complete company for nicer auto-completion in clojure mode
(define-key clojure-mode-map (kbd "TAB") #'company-indent-or-complete-common)
;; Make C-RET eval the last-sexprs for nicer eval when in clojure mode connected to CIDER repl
(define-key clojure-mode-map (kbd "C-<return>") #'cider-eval-last-sexp)))
it is a defcustom
yep true, weird...
trying 😄
nope 😓
If you go in sratch, and you type clojure-refactor-map-prefix
and then run C-x C-e, what is printed in the echo area?
it prints the correct one
but then the key combination does not work in the buffer, saying that it is undefined
Hum, weird. Did you try setting it before clojure-mode loads too? Might depend when clojure-mode registers the keybinding from that var
right it might be that
too bad that C-c C-r
clashes with inf-clojure-eval-region
trying to disable that key binding actually but it gets added somehow
I remember long long time ago there was a way to generate function stub of a protocol, is it still there?
There was just a ticket about this, but nothing concrete came out in CIDER. Maybe something in clj-refactor.el
? //cc @benedek
@richiardiandrea Btw, in the morning I remembered that it was cider-ns-form
, not clojure-ns-form
. Anyways, I can always move this to clojure-mode
indeed.
Ok I will check that, I am still undecided on that, I don't know if it is actually necessary for my workflow, will open an issue in case ok?
In cider-util.el
we’ve got a boatload of functions that I assume are going to be useful for any clojure-mode user, especially tools like inf-clojure
. You might want to check this file out.
Ok thanks I will!
Is there a way in CIDER (or elsewhere) to nicely see a list of all the methods for a multimethod and allow me navigate to their definitions? There's clojure.core/methods
which is a start, but I'm hoping for something more.
We don’t have such a functionality, but I assume it wouldn’t be hard to implement this.