Friday, 15 August 2014

which repl to use inside emacs for clojure -



which repl to use inside emacs for clojure -

i tring setup environment editing clojure in emacs. i'm relatively new emacs (only 1 yr) , totally new clojure (2 weeks). i've found lots of tutorial online how setup of talk lein, swank-clojure, slime , nrepl. seems swank-clojure , slime need work swank-clojure deprecated, left nrepl , built in lisp repl mode.

i tried inferior lisp mode first because default clojure-mode , looks fine me. can't seem tp find way switch namespace within it.

i tried emacs-live kit emacs newbie comes nrepl. can "nrepl-jack-in" repl though slow.. can switch namespace "c-c m-n". howevre, sometime after switching, buffer called nrepl error pop , won't allow me close. have forcefulness close emacs instead. also, nrepl not have much of syntax highlight.

to sum up: after swank-clojure been deprecated, repl should use? slime-repl? nrepl? or others?

i don't know much clojure i'm not sure bwhat feature of import repl nice @ to the lowest degree have syntax highlight , can switch between namespace "c-c m-n" in nrepl, , maybe debugger.

i heartily recommend nrepl.el various reasons:

swank-clojure dead officially, has been dead long while. while getting job done, nil much has changed or improved in after initial inception. development of swank-clojure required important expertise in mutual lisp, clojure developers lack , unwilling attain.

clojure-mode 2.0.0 doesn't back upwards swank-clojure + slime @ all. move hugely beneficial both clojure-mode (which dropped lot of legacy code) , nrepl.el (which's development pace increased after announcement).

nrepl.el picking features fast. i'm 1 of contributors should know :-) lot of cool things macroexpansion, compilation error highlighting , multiple connections back upwards added, name few. many more features , refinements in pipeline. nrepl.el's architecture much simpler slime's , it's much easier regular clojure hackers extend nrepl.el.

slime syntax highlighting? repl has same font-locking in both slime , nrepl.el , source buffers using clojure-mode's font locking. other words - syntax highlighting's same in both.

emacs live relies on vendorized git submodules , versions of extensions ships lagging behind upstream bit. might want seek alternative emacs prelude, ships clojure support, uses latest packages available in melpa.

there no slime-repl (outside slime is). @ point it's swank-clojure + slime or nrepl.el. given nrepl.el implements of slime has - you'd improve used using nrepl.el.

update

nrepl.el renamed cider after version 0.2.0.

emacs clojure slime

No comments:

Post a Comment