`

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")
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics