最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

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

programmeradmin1浏览0评论

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.

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.

Share Improve this question edited May 23, 2017 at 11:54 CommunityBot 11 silver badge asked Sep 24, 2013 at 8:18 jcubicjcubic 66.5k58 gold badges248 silver badges449 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 39

Found this as well

(setq js-indent-level 2)
发布评论

评论列表(0)

  1. 暂无评论