`
阿尔萨斯
  • 浏览: 4185717 次
社区版块
存档分类
最新评论

Emacs 使用Jslint

 
阅读更多

由于jslint对tab的要求是8个空格宽度,默认的Emacs 的js模式格式化的代码不符合要求。

Mx- customize-variable

然后对js-indent-level设置成8

通过Save for future sessions保存到.emacs文件中。

(custom-set-variables
  ;; custom-set-variables was added by Custom.
  ;; If you edit it by hand, you could mess it up, so be careful.
  ;; Your init file should contain only one such instance.
  ;; If there is more than one, they won't work right.
 '(jde-run-option-debug (quote ("Server" "Socket" "javadebug" nil "5005" t)))
 '(js-indent-level 8))
(custom-set-faces
  ;; custom-set-faces was added by Custom.
  ;; If you edit it by hand, you could mess it up, so be careful.
  ;; Your init file should contain only one such instance.
  ;; If there is more than one, they won't work right.
 )



分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics