Fork me on GitHub
#cider
<
2020-11-09
>
theeternalpulse15:11:01

figured it out, needed to use cider jack-in/connect clj&cljs, or just connect to the clj after connecting to cljs.

kennytilton22:11:11

I am just getting ready to set up Emacs/CIDER on a new box after a while on IJ/Cursive. I have done this before and know I was not crazy about Spacemacs, There are lots of articles out there on ding this, but is there a preferred Emacs/CIDER starter write-up we refer folks to? 🙏

justinbarclay22:11:37

If you want something more out of the box or with bells and whistle than doom-emacs is pretty slick for *nix users. It's generally for more advanced Emacs users but it's pretty fast and scrappy compared to Spacemacs. https://github.com/hlissner/doom-emacs

practicalli-johnny02:11:31

Use the http://cider.mx docs if you dont want a community configuration like Spacemacs For those that use Spacemacs, I wrote a book to make the most out of it https://practicalli.github.io/spacemacs/ Unfortunately that seems of less relevance to you I am afraid. Otherwise use prelude, especially if you want just the Emacs keybindings rather than Vim/Evil approach.

👍 3
dpsutton22:11:21

i think the docs are the best. reading through that might be the biggest bang for buck. http://cider.mx is straight forward and you'll get the most up-to-date and authoritative answers

kennytilton22:11:36

Thx, @dpsutton. I belatedly thought to check the CIDER site but did not see anything. Thanks for the link!

dpsutton22:11:48

if you want my config here it is:

(use-package cider
  :demand t
  :load-path "~/projects/dev/cider/"
  :init
  (load "cider-autoloads" t t)
  :config
  (setq cider-invert-insert-eval-p t)
  (setq cider-switch-to-repl-on-insert nil)
  (setq cider-font-lock-dynamically t)
  (setq cider-show-error-buffer nil)
  (setq cider-repl-display-help-banner nil)
  (setq cider-repl-pop-to-buffer-on-connect 'display-only)
  (setq cider-repl-tab-command (lambda () (company-indent-or-complete-common nil)))
  :bind (:map
         cider-repl-mode-map
         ("RET" . cider-repl-newline-and-indent)
         ("C-j" . cider-repl-return)
         ;; :map
         ;; paredit-mode-map
         ;; ("C-j" . cider-repl-return)
         ))
just get rid of the "load-path" parts and that's a bulletproof setup (in my opinion)

kennytilton22:11:24

OK, saw that. This is a new company toy, no Emacs yet. I think I see some promising links on that. Thx again.

kennytilton22:11:55

Haha, you read my mind on the config. Thx!