文章目录

首先要去 https://github.com/rooney/zencoding 这里下载一个zencoding-mode:

wget https://github.com/rooney/zencoding/raw/master/zencoding-mode.el

将下载过来的文件放到~/.emacs.d/plugins目录下

然后在.emacs文件里面添加以下配置

1
2
3
(add-to-list "~/emacs.d/plugins")
(require 'zencoding-mode)
(add-hook 'sgml-mode-hook 'zencoding-mode);;配置到sgml-mode-hook,让它自动启动

示例图

tip

输入类似 div.item*5>span这样的代码后按C-RET就可以展开。

文章目录