emacs & yasnippet

首先把YAsnippet 检出来
git clone https://github.com/capitaomorte/yasnippet
我是把它放到 ~/.emacs.d/plugins 下的
然后在.emacs 里面加入如下代码

(add-to-list 'load-path
              "~/.emacs.d/plugins/yasnippet")
(require 'yasnippet)
(yas/global-mode 1)


# git clone git://github.com/rvf0068/yasnippets.git
## 复制yasnippets/org-mode目录到yasnippet/snippets/目录下
# cp -r org-mode ~/.emacs.d/plugins/yasnippet/snippets/

题外话如果 emacs 打开某些文件会部分汉字乱码 可能是因为某些字体的汉字不全的问题
只需要设置一下常用字体即可
(set-frame-font "微软雅黑-10")

猜你喜欢

转载自jianghao19890829.iteye.com/blog/1848330
今日推荐