我从Github下载了autopair并将其提取到〜/。emacs.d
。另外,我添加了安装说明中给出的行。
(add-to-list 'load-path "/path/to/autopair") ;; comment if autopair.el is in standard load path
(require 'autopair)
(autopair-global-mode) ;; enable autopair in all buffers
我将 (add-to-list 'load-path "/path/to/autopair")
修改为 (add-to-list 'load-path "~/.emacs.d/autopair-master/")
,因为那个文件夹包含 autopair.el 文件。但是当我打开 Emacs 时出现了
Warning (initialization): An error occurred while loading `/home/karthikeyan/.emacs':
File error: Cannot open load file, cl-lib
我在Linux Mint 15中使用emacs 23.4.1,有没有其他方法可以在启动时用一个函数自动完成大括号?此外,它在Meta-x
中没有显示autopair模式。