cannot open load file when using emacs

ant2009 picture ant2009 · Jun 14, 2011 · Viewed 26.5k times · Source
GNU Emacs 23.2.1

I have downloaded rainbow-delimiters.el and put into the following directory:

~/.emacs.d/site-list/rainbow/

In my emacs configuration file, I have the following:

(add-to-list 'load-path "~/.emacs.d/site-list/rainbow")
(require 'rainbow-delimiters)

However, when I try and start emacs I get the following error:

File error: Cannot open load file, rainbow-delimiters

Can anyone point me in the right direction?

Answer

Lindydancer picture Lindydancer · Jun 14, 2011

The code looks all-right, I would put my money on a typo. In fact, the traditional name is site-lisp (i.e. with a p and not a t), maybe you put the file in site-lisp but wrote site-list in your init file?