Emacs常用扩展
- sr-speedbar
- yasnippet
1、sr-speedbar
SrSpeedbar is a mode that makes SpeedBar show in the Current Frame, by SebastianRose.
安装
将sr-speedbar.el放入load-path,在~/.emacs
中添加以下代码:(require 'sr-speedbar)
自定义
(setq speedbar-show-unknown-files t) |
2、yasnippet
安装:
Add the following in your .emacs
file:(add-to-list 'load-path "~/.emacs.d/plugins/yasnippet")
(require 'yasnippet)
(yas-global-mode 1)
变量示例:
# name: test
# key: test
# —
this is field $1
this is field ${2:default text}
this is a mirror $2
this is a mirror with transformation ${2:$(upcase text)}
可以直接在已有的模板上添加修改,为输入添加选项
# name: test2
# key: test2
# —