I am using js2-mode to edit Javascript in Emacs, but I can't seem to get it to stop using tabs instead of spaces for indentation. My other modes work fine, just having issues w/ js2.
相关问题
- Is there a limit to how many levels you can nest i
- Symbol's function definition is void: declare-
- How to toggle on Order in ReactJS
- void before promise syntax
- Keeping track of variable instances
On my copy of GNU Emacs 24.2.1, setting:
in .emacs is not sufficient for javascript mode, presumably because the setting is somehow being over-ridden in a per-buffer context. The following change is sufficient:
Add this to your
.emacs
file somewhere after you load js2 mode:Do you have
in your .emacs? It works fine for me in emacs 23.0.60.1 when I do that. js2-mode uses the standard emacs function indent-to, which respects indent-tabs-mode, to do its indenting.