我已从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
答案 0 :(得分:20)
试试这个(我的emacs版本是23):