Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 05-30-2012, 12:27 AM   #1
Registered: Jun 2005
Distribution: Slackware 14.0
Posts: 86

Rep: Reputation: 15
Emacs color-theme and Cannot load file error

Hi all,

I've been trying to get color-theme to work on Emacs 23.4.1, but I receive the following error after launching Emacs:
File error: Cannot open load file, color-theme
I have installed color-theme via
Here is a portion of my .emacs file:
(add-to-list 'load-path "~/.emacs.d/color-themes")
(require 'color-theme)
(eval-after-load "color-theme"
My color-theme.el file is located at
Any help is appreciated.


I found that my EMACSLOADPATH is pointing to /usr/local/share/blah blah blah instead of /usr/share/blah blah blah
I'll update this as I go along. As a side note, I'm using Slackware. I used a slackbuild to install this, but it installed in /usr/share instead of /usr/local/share, so it seems that I had two versions installed and libraries in only one location.

I'm currently trying to installed color-theme manually, but make or make install isn't working for this.


I was never able to overcome the compile error from color-theme so I decided to go diving into the SlackBuild. After doing so I noticed a particular line that references /usr/ and I changed it to /usr/local and this fixed the problem. Turns out Slackware is a bit weird and installed the distribution version of emacs into /usr/share and so the SlackBuild for color-theme reflected that.

The updated script can be found at

CREDIT/PROPS is given to emit from #emacs for helping/doing all the real work.

Last edited by derrekito; 05-30-2012 at 10:40 PM.
Old 05-31-2012, 02:45 AM   #2
Registered: May 2006
Location: netherlands
Distribution: slackware, centos, scientificlinux
Posts: 122

Rep: Reputation: 24
Thanks for sharing!
Old 06-03-2012, 06:01 AM   #3
Registered: Sep 2004
Location: UK, Europe
Distribution: Slackware64
Posts: 761

Rep: Reputation: 35
I have a slightly different SlackBuild for color-theme, which also takes care of byte compiling it for Emacs, so it doesn't need to every time you start Emacs:

With this, I've never had the need to edit EMACSLOADPATH.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Emacs File Load Problem MannyBuret Linux - Software 1 11-05-2011 12:41 AM
LXer: Emulating The Terminal Emulators For Fun (with emacs color-theme) LXer Syndicated Linux News 0 09-24-2011 07:21 PM
Emacs's color theme installation problem ArthurHuang Programming 2 12-30-2010 06:31 AM
setting up printer an Epson color stylus 740 cups will not load error rafty114 Linux - Hardware 2 01-01-2008 11:09 AM > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:58 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration