This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-02-04
Channels
- # arachne (108)
- # beginners (16)
- # boot (48)
- # cider (34)
- # cljs-dev (12)
- # clojure (237)
- # clojure-spec (50)
- # clojure-uk (5)
- # clojurescript (8)
- # cursive (1)
- # datascript (2)
- # datomic (6)
- # defnpodcast (1)
- # emacs (1)
- # fulcro (7)
- # hoplon (1)
- # keyboards (1)
- # off-topic (22)
- # re-frame (26)
- # reagent (2)
- # specter (16)
- # unrepl (6)
- # yada (1)
Yeah, you were right - the error was coming from rlwrap
. I didn’t know about that difference between clj
and clojure
.
Feel free to open a ticket about this. At least we can finally document this better.
Unfortunately the manual was created after most of the code and doesn’t many of the configuration options, just because I din’t have enough time to do it right.
There’s a spec browser: https://github.com/clojure-emacs/cider/blob/master/doc/miscellaneous_features.md#spec-browser
dominic@bianca2 ~/s/g/j/m/c/fatjar (master)> cat /usr/bin/clj
#!/usr/bin/env bash
if type -p rlwrap >/dev/null 2>&1; then
rlwrap -r -q '\"' -b "(){}[],^%3@\";:'" clojure "$@"
else
echo "Please install rlwrap for command editing or use \"clojure\" instead."
fi
yeah, clj
is lightweight to say the least 😄@bozhidar Is it possible to do form-wise navigation? I couldn’t find an answer in Cider manual..e.g. from the current cursor, how do I ask to “go to the start of the previous global form”, or “go 2 sibling forms down”? I have looked at paredit commands, but they seem quite primitive, as I can never get past the end of the current form when trying to jump.. Thanks for any advice, and for all your fabulous work!
@kingcode What you need is not generally in the scope of CIDER, as it doesn’t require REPL connection. You can take a look at some built-in commands (which are also available in clojure-mode
).
Hi Guys, I've acclimated (for the first time) with emacs, and cider. Is it normal that the cider menu doesn't always show? I currently only get a Clojure menu at the menu bar. How would I troubleshoot this?
And second question if I may, when I run tests or a main from within emacs (how?) will it jump to the crashed line of code if the code crashes?
I tried reinstalling the package, which didn't produce any error. But now it is no longer showing for me in the package list, and it even seems no longer available to me through package-install
although I do have melpa-stable in my .emacs
All I did in between was install dark-theme packages and make minor changes through the Options
menu
What happens if you M-x cider-mode
in that clojure buffer?
without this command I am not in Clojure cider
mode but only in clojure
mode when opening a .clj file as a buffer
Yes, you can persist that in your config.
Um, let me dig up a link.
(add-hook 'clojure-mode-hook #'cider-mode)
@gonewest818 just add that to the .emacs file as a new line?
Most likely to avoid tight coupling where it isn’t strictly necessary. There is code in CIDER that anticipates having clojure-mode
without cider-mode
. In that case a small subset of autoloaded CIDER commands apparently get added to the Clojure menu.