6 ms·
I saw he mentioned switching to Emacs. Is the emacs - clojure workflow really as good as it's made out to be, as in good enough to both switching from Vim? I
by cgag 15y ago
I saw he mentioned switching to Emacs. Is the emacs - clojure workflow really as good as it's made out to be, as in good enough to both switching from Vim? I was planning on getting into Clojure this weekend, and if it's actually worth doing I suppose I could learn Emacs at the same time, but I've always been turned off by the weird key chords.
- fpgeek 15y agoThe last time I used it, SLIME integration for Clojure was very slick. It was a while back so there were a fair number of moving parts to align, but I'd guess that has gotten better. It is worth doing, especially if you've never used another integrated Lisp environment, but I wouldn't recommend laying it on top of learning Clojure. I'd say learn Clojure first, then try out emacs and the emacs integration.
- scottjad 15y agoSlime and Clojure have improved, mainly through clojure-jack-in and ritz. Of course the Common Lisp Slime experience is still better but the essentials are definitely there with Clojure. There are several heavyweights in the Clojure community that use VIM and have developed good plugins, and Rich never seems to be using SLIME during presentations, so you can definitely get by fine without it.
- puredanger 15y agoAgreed. There are many ways to fly. I'd say Emacs is well-developed and probably the most common, but certainly not the only choice.
- puredanger 15y agoI agree. Emacs is a power tool for writing Clojure. I learned Clojure first with tools I knew, then learned Emacs later. For me, that was a much better way to deal with the cognitive load.
- jshen 15y agoIf you're on a mac I have a good blog post which shows how to setup aquamacs for clojure. http://jaydonnell.com/blog/2011/10/07/setting-up-aquamacs-for-clojure-and-general-goodness/ http://jaydonnell.com/blog/2011/10/07/setting-up-aquamacs-fo... The steps are pretty much the same for regular emacs, you just need to put things in ~/.emacs.d/ instead of ~/Library/Preferences/Aquamacs\ Emacs/
- puredanger 15y agoWhile Aquamacs is a viable choice, from what I understand Aquamacs is not fully compatible with the Gnu Emacs settings and I was advised by people I trust that Emacs.app was a safer bet. I tried Aquamacs anyways but can't say I liked it very much. Emacs.app with @technomancy's Emacs starter kit made things pretty easy.
- jshen 15y agoI'm not sure what the value of emacs purity is. I've used both, and I like aquatics better. Either way, the setup for clojure is effectively the same.
- pivo 15y agoFor one thing, if you work on other platforms you might want Emacs to behave the same way on all of them.
- deleted 15y ago[deleted]
- snprbob86 15y agoI also tried Emacs.app and Aquamacs. Aquamac's behavior was totally odd & didn't match any of the documentation. I found the Cocca Emacs.app to be much easier to set up and get running. That said, neither of them feel as good as MacVim, as far as native Mac apps go.
- jshen 15y ago
- puredanger 15y agoA well-tuned Emacs/Clojure environment can be very very smooth. Mine is not particularly well-tuned - I tend to get tired of tool config'ing and just put up with stuff so I can get work done. :)
- snprbob86 15y agoI'm also a big Vim guy and recently spent a few late nights hacking on some Clojure stuff. I tried to learn both Emacs and Clojure and eventually had to give up and just use Vim until I was more comfortable in Clojure. At minimum, you need a easy way to paste top-level forms into a repl. This is the simplest way for Vim: http://www.vim.org/scripts/script.php?script_id=3023 http://www.vim.org/scripts/script.php?script_id=3023 That script is actually crazy useful & I now use it for a whole bunch of different use cases. That said, the Emacs->Slime<->Swank<-Clojure bridge is really much better & think that I'm going to invest some more effort into becoming proficient at Emacs. My limited experiments with Slime were very positive & nothing in the Vim world even comes close. I tried all the various attempts in their current form as of two weeks ago. Most are hard to get running, don't work exactly right, struggle with subprocesses management, etc. And you're totally on your own with those, no warrantee and no maturity.
- agumonkey 15y agoI recently saw this mentioned in a post : http://www.google.fr/search?q=slimv http://www.google.fr/search?q=slimv might be better
- jhickner 15y agoI find emacs + swank to be roughly equivalent to vim + vimclojure + paredit.vim. Install vimclojure and the lein-nailgun leiningen plugin and you'll be up and running in no time.
- Kototama 15y agoYes it can be really good. You can have compilation on the fly, integrated REPL, completion, some debugging facilities, edition of s-expression at the structural level etc. See this video for an overtuned (!) Emacs https://github.com/overtone/live-coding-emacs https://github.com/overtone/live-coding-emacs The configuration can be found here: https://github.com/overtone/live-coding-emacs https://github.com/overtone/live-coding-emacs
- Estragon 15y agoThanks, beautiful stuff. (The music more than the editing facilities, though those were nice too.)
- lucian1900 15y agoI'm trying out emacs with evil mode (vim emulation) and it's been quite nice so far. Pretty good clojure and coffeescript modes.