简体   繁体   中英

How to set 2 spaces indent in javascript-mode in Emacs?

This is similar question as this How do I change indent in php-mode to 2 spaces in Emacs? but for javascript-mode, I've try the same

(setq c-basic-offset 2)

but it don't work.

发现了这一点

(setq js-indent-level 2)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM