On this page... (hide)
I’m useing Yegge’s mode, and it works pretty well. Sometimes chokes on syntax highlighting, and has some quirks (insists on semicolons in places where they aren’t needed; maybe I should check up on that). The indentation system is weird. I know he wrote a lot about how hard it is to do right -- but why do other modes seem to do it, then? Anyway. works.
- checkout the version from the SVN
- if you don’t have cygwin or linux,
emacs -batch -q -l js2-build.el -f js2-build-j2-mode
- copy the files where they need to go
- (taken from
- follow the other directions
IT WORKED. finally fixed the crappy indentation.
ASSUMING YOU ARE USING js2mode
change auto-indent level
you can do this via custom, and change it everywhere
or in .emacs -- and change it everywhere
(setq js2-basic-offset 2) and change it just for that local buffer
Which may be the solution for now.