Re:Why Emacs is great - SLIME repl for developing in-browser...
by johnbender on Monday November 29, 2010 @06:44PM
(#1952346)
https://github.com/mitchellh/dotfiles/blob/master/emacs.d/mo...
You can steal the hooks at the bottom of the file to use the indentation of espresso mode. This was driving me insane too.
Thanks to mitchellh for publishing his dotfile :D
Re:Why Emacs is great - SLIME repl for developing in-browser...
by mccutchen on Monday November 29, 2010 @07:04PM
(#1952419)
This looks like it's exactly what I was looking for. Many, many thanks to you.
Re:Why Emacs is great - SLIME repl for developing in-browser...
by chaitanya on Tuesday November 30, 2010 @03:44AM
(#1953559)
Thanks, it was really useful for me too.
Re:Why Emacs is great - SLIME repl for developing in-browser...
by mnemonik on Tuesday November 30, 2010 @04:13AM
(#1953608)
I also got upset by how whimsical js2-mode can be at times. Espresso-mode (now just js-mode in emacs 23) indents perfectly, and is generally very sane, albeit somewhat boring. I use that as my major mode. However, to get the cool static analysis that I miss from js2-mode, I have flymake set up to us jslint.
http://www.emacswiki.org/emacs/FlymakeJavaScript
The combo of espresso-mode and flymake is like The Good Parts of js2-mode. Now once I add this in to the mix...
Re:Why Emacs is great - SLIME repl for developing in-browser...
by jlongster on Monday November 29, 2010 @05:53PM
(#1952179)
I had the same problem with js2-mode. For a while I just accepted the indentation rules and it started to make sense, and it also helped that I tweaked the code and settings to fix the real annoyances. I was pretty happy with it but I stopped doing a lot of javascript.
Not sure what the status of js2-mode is right now.
Do you know if that has changed, or if maybe I'm missing some easy .emacs magic to make it work?