由于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.
)
分享到:
相关推荐
使用V8的Emacs Flymake的JSLint 这允许使用Javascript V8从Emacs使用JSLint。 还有其他使用Emacs的JSLint的方法,请参阅 ,但这是最简单,最快的方法。安装假设您将emacs软件包安装在~/.emacs.d : 将此包放在~/....
Emacs使用详解Emacs使用详解Emacs使用详解
emacs使用手册 简要介绍emacs的使用
emacs使用手册(很权威),比较全面的介绍了emacs的快捷键和各种技巧
Emacs使用手册 Emacs使用手册 Emacs
gnu emacs 是个强大的编辑器,使用起来是有一定的难度的,但是这个文档能帮你很快的适应它的操作。
可以对emacs有一个比较深入的了解,同时也能加强英语的学习
emacs在LINUX/UNIX使用比较多. 文字处理, 多个BUFFER. ...
手把手教你学习emacs(此文档为pdf格式,共14页,内部含图,介绍详尽)
Goism: 在Emacs 使用Go语言 替代Emacs Lisp语言
emacs使用手册和常用命令 emacs使用手册和常用命令
emacs多年使用总结
Emacs使用记录
Emacs官方使用指南(中文版的)希望有所帮助!
Emacs使用前的配置,便于U盘携带,可以任意改变软件放置位置 原理就是改变了HOME目录,使得可以把配置文件.emacs放置在软件目录下,任意随软件迁移
emacs 使用指南,简单介绍了emacs的一直快捷键,如何设置等
自诞生以来,Emacs演化出了众多分支,其中使用最广泛的两种分别是:1984年由Richard Stallman发起并由他维护至今的GNU Emacs,以及1991年发起的XEmacs。XEmacs是GNU Emacs的分支,至今仍保持着相当的兼容性。它们都...
Emacs.使用手册 中文版 比较早期的文档,但还是很有参考价值
Emacs 的 info 使用说明 Emacs 的整合环境 如何在 Emacs 中执行 Shell 的指令 有关目录的编辑方法 如何编辑远方机器上的档案 程式的编辑,编译与测试 如何在 Emacs 中列印文件 在 Emacs 中如何收发信件 其它...
本压缩包包括了:living in emacs, survive in emacs & gnu emacs pocket referrence. 希望大家喜欢