So the other thread about IDEs spun off another Vim thread, and I'd like to
spin off an emacs thread as well :)

I used to use Steve Yegge's js2-mode, but like many others I found the
indenting to be annoying even after using the "bounce" mode. Then I found an
article [0] describing how to replace the js2 indentation function with
espresso mode's (if you are using emacs 23, you may need to replace all the
references to espresso- with js- now that espresso mode has landed in emacs
trunk).

It's been a little while so I can't remember the exact details, but I still
found js2-mode to be a little flaky, and I have switched all the way over to
js-mode (espresso-mode). I am using flymake with jslint [1] to get some cool
static analysis and style hints that I missed from js2-mode. Because I use
emacs in the terminal, rather than in a GUI environment, I was having
problems with the messages showing up and had to hack a little fix [2].

Does anyone have any experience with swank-js [3]? I have been meaning to
look in to it, but haven't gotten around to it yet. It is supposed to be a
backend to SLIME but for JS instead of Lisp. It would give you an embedded
read-eval-print-loop for JS, among other things, inside emacs.

FWIW, I have my whole emacs config up on github, with the js-specific parts
here [4], but I am warning you now that it is messy and there is a bunch of
unused/in-progress stuff in there.

Does anyone else have any cool JS + Emacs stuff to share? What do you guys
and gals use?

[0] http://mihai.bazon.net/projects/editing-javascript-with-emacs-js2-mode

[1] http://www.emacswiki.org/emacs/FlymakeJavaScript

[2] https://github.com/fitzgen/dot-files/blob/master/.emacs.d/init.el#L120

[3] https://github.com/ivan4th/swank-js

[4] https://github.com/fitzgen/dot-files/blob/master/.emacs.d/my-js.el

_Nick_

-- 
To view archived discussions from the original JSMentors Mailman list: 
http://www.mail-archive.com/[email protected]/

To search via a non-Google archive, visit here: 
http://www.mail-archive.com/[email protected]/

To unsubscribe from this group, send email to
[email protected]

Reply via email to