Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

cannot load cl-lib at emacs startup

Tags:

emacs

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

like image 590
xtreak Avatar asked Dec 19 '13 10:12

xtreak


1 Answers

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)
like image 144
sparx Avatar answered Sep 17 '22 23:09

sparx