Reputation: 26405
I'm editing React .jsx
files, and I don't want to indent on newline, how to disable it?
Upvotes: 5
Views: 1113
Reputation: 1
What seems to work in Emacs 25.1.1 is setting electric-layout-mode
to -1
.
So In js2-mode-hook
add:
(add-hook 'js2-mode-hook (lambda () (electric-layout-mode -1)))
Upvotes: 0
Reputation: 28531
M-x electric-indent-local-mode
should do it if you're using Emacs-24.4.
Upvotes: 9