简体   繁体   中英

cannot load cl-lib at emacs startup

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):

  1. create new directory cl-lib in your .emacs.d directory
  2. put this file into this cl-lib directory
  3. add at top of your .emacs file these strings:
    • (add-to-list 'load-path "/path_to_your.emacs.d/cl-lib/")
    • (require 'cl-lib)

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM