看網上好多文章說使用html-mode和html-helper-mode,自己查了半天,發現支持的並不好。一方面現在的web前臺開發是多種語言的結合,另一方面html本身也在改進,至少現在的版本已經有好多是html5了。
一個比較重要的網站是:
http://www.emacswiki.org/emacs/HtmlMode
一些比較重要tips:
http://ergoemacs.org/emacs/emacs_html.html
找了個半天,搭建環境可以靠以下幾個插件:
YASnippet 一個語言模板,寫下縮寫詞之後,emacs調用可以自動擴展。目前主要支持的語言有:C, C++, C#, Perl,Python, Ruby, SQL, LaTeX, HTML, CSS and more
參考網站:https://github.com/capitaomorte/yasnippet
Zencoding 針對html的css,方便寫這些東西。參考網站:
https://github.com/rooney/zencoding一些常用的命令:
http://dsec.pku.edu.cn/~jinlong/emacs/emacs.html