I've set my tabs to 4 and haven't changed any JS indent settings. All the indents I found in the "JavaScript group" have values either 0 or 4, yet the following code
describe('test Info', () => {
it("should respond with Info", done =>
doGet("Info", r => {
expect(r.statusCode).toBe(200);
gets indented to columns 4, 7 and 11, while I'd strongly prefer 4, 8 and 12. I guess, Emacs indents doGet
just below "should...", but I can't see any reason for it. Strangely, it doesn't do this on the next line...
How can I change it?
Details
GNU Emacs 24.5.1 (x86_64-pc-linux-gnu, GTK+ Version 3.18.9)
Enabled minor modes: Auto-Composition Auto-Compression Auto-Encryption Blink-Cursor File-Name-Shadow Font-Lock Global-Font-Lock Line-Number Menu-Bar Mouse-Wheel Show-Paren Tooltip Transient-Mark
Javascript mode defined in `js.el':