I have downloaded autopair from Github and extracted it to ~/.emacs.d
. Also I added the lines given in the installation instructions
(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
I modified (add-to-list 'load-path "/path/to/autopair")
as (add-to-list 'load-path "~/.emacs.d/autopair-master/")
as that folder contains the autopair.el file. But when I open emacs it shows
Warning (initialization): An error occurred while loading `/home/karthikeyan/.emacs':
File error: Cannot open load file, cl-lib
I use emacs 23.4.1 in Linux Mint 15 and is there any alternate way to autocomplete the braces with a function at startup? . Also it doesn't showup autopair mode in Meta-x
try this (my emacs version is 23):
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.