I am coding in Node.js, each time I want to write something that looks like this:
const product = Factory
.model('App/Models/Product')
.create()
I get this as an output:
const product = Factory
.model('App/Models/Product')
.create()
And I delete back the space before the last line, and then I press Enter to continue coding, the last line jumps right again as this screenshot shows:
Adding (setq-default indent-tabs-mode nil)
in my ~/.emacs
file does not help.
What settings should I add for my Emacs to avoid this?
js-mode
,js2-mode
, or something else?js2-mode
js2-mode
is controlled byjs-mode
, and it seems that I can't get it to not give special indentation to chained calls. Maybe someone reported a problem with this before to eitherjs-mode
orjs2-mode
maintainers.