This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-01-07
Channels
- # aws (2)
- # bangalore-clj (4)
- # beginners (62)
- # boot (74)
- # cider (408)
- # cljsrn (17)
- # clojure (117)
- # clojure-dusseldorf (1)
- # clojure-russia (21)
- # clojure-spec (17)
- # clojure-uk (15)
- # clojurescript (154)
- # cursive (3)
- # datomic (16)
- # emacs (33)
- # funcool (3)
- # hoplon (99)
- # off-topic (7)
- # om (10)
- # overtone (3)
- # portland-or (1)
- # protorepl (9)
- # re-frame (83)
- # reagent (11)
- # remote-jobs (1)
- # ring-swagger (24)
- # specter (10)
- # untangled (1)
- # yada (11)
Does anyone know how to rebind the cider repl so using the arrow keys will scroll through the history. I tried doing
(define-key 'cider-repl-mode-map (kbd "<up>") 'cider-repl-previous-input)
(define-key 'cider-repl-mode-map (kbd "<down>") ‘cider-repl-next-input))
However I keep getting this error
Error in dotspacemacs/user-config: Wrong type argument: keymapp, cider-repl-mode-map@dorianc.b I'd suggest putting (setq cider-pprint-fn “fipp”)
under dotspacemacs/user-config
in ~/.spacemacs
. This should avoid the posibility of the cider package over-riding this setting. The configuration file ~/.spacemacs is equivalent to ~/.emacs.d/init.el
. Alternatively, you can also use .spacemacs.d/init.el
assuming you do not use ~/.spacemacs
, but this is typically only used if you have other local configuration files (and you want to version control them)
@dorianc.b for the keybindings I suggest using a hook, as I believe the cider-repl-mode-map
is only available once you run the repl. So a hook will pull in the config when cider-repl-mode
is activated. So you would use something like
(add-hook 'cider-repl-mode-hook
'(lambda ()
(define-key cider-repl-mode-map (kbd "<up>") 'cider-repl-previous-input)
(define-key cider-repl-mode-map (kbd "<down>") 'cider-repl-next-input)))
@jr0cket Thank you so much. Also your blog posts were really helpful in setting up spacemacs
Hi everyone. I'd like to setup Emacs to be able to run Clojure repl, but I'm having an issue, and cannot figure it out, since I'm new to Emacs as well. 😐
When I create a new project with Leiningen, and open the core.clj file in Emacs, when I try to run cider-jack-in, I'm getting the message "Symbol's function definition is void: nil"
I have the Emacs version 24.5.1, Leiningen 2.7.1, Cider 0.15.0snapshot (20170104.1330)
I have also asked a question on Stackoverflow, where more details can be found: http://stackoverflow.com/questions/41508593/running-cider-jack-in-in-emacs
Unfortunately, that didn't help (I removed clojure-mode manually from elpa folder, and then did package-install in emacs)...
@stanislav can you check cider-client.el
for me at line 102?
you can just navigate to the function cider-repl-buffers
and see if it looks like this
it should look like this
(defun cider-repl-buffers ()
"Return the list of REPL buffers."
(seq-filter
(lambda (buffer)
(with-current-buffer buffer (derived-mode-p 'cider-repl-mode)))
(buffer-list)))
i have no idea of your level of comfort in emacs so i don't want to talk over your level
M-x
in spacemacs is M-x
spacemacs also has SPC SPC
if you are in vim normal mode for M-x
.
we had a working spacemacs & clojure setup, just didnt figure out the brave clojure version of the emacs setup
I'd still like to figure out why it didn't work with the brave clojure version, specially if it is a bug somewhere.
so are you trying to configure emacs with CIDER and spacemacs with clojure layer at the same time?
I understand what you just wrote, but not on a very high level, or to rephrase, not sure how that affects me.
it basically means if two different packages name things the same, only the last wins
so if spacemacs layer and CIDER were fighting to name functions the same thing, we could easily have some really confusing situations
no, I have replaced all configuration I had in emacs with spacesmacs, and it was working fine
you can see this all over because functions are named cider--my-private-function
. The "namespace" is in the name
swiching between two ~/.emacs.d
directories
sure (that's what I offered to do at the begining of our talk, but you said it might not be necessary 🙂 )
my thought is there is a bug in the brave clojure configuration, or more likely something outdated
So far it's really readable and easy to follow (except for the part that I couldn't get REPL running in emacs 😄 )
cider-repl-buffers is an alias for `cider-repl-buffers', which is not defined. Please make a bug report.
So, my cursor should be anywhere inside this function, and I should hit M-C-x, right?
you should have seen a message at the bottom like "edebug instrumented cider-repl-buffers
(add-to-list 'package-archives '("melpa" . "http://melpa.milkbox.net/packages/") t)
hello I just entered cider-debug mode but when I press n it just displays n in the screen
how can I step further into my fn
I did C-u C-M-x in the top fn form
oh I guess I have to call it
wow this is awesome!