LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 05-30-2012, 12:27 AM   #1
derrekito
Member
 
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:
Code:
File error: Cannot open load file, color-theme
I have installed color-theme via http://slackbuilds.org/repository/13...e/color-theme/
Here is a portion of my .emacs file:
Code:
(add-to-list 'load-path "~/.emacs.d/color-themes")
(require 'color-theme)
(eval-after-load "color-theme"
  '(progn
     (color-theme-initialize)
     (color-theme-tomorrow)))
My color-theme.el file is located at
Code:
/usr/share/emacs/site-lisp/color-theme.el
Any help is appreciated.

EDIT:

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.

EDIT:

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 http://pastebin.com/VymnDzJ3

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
cmk77
Member
 
Registered: May 2006
Location: netherlands
Distribution: slackware, centos, scientificlinux
Posts: 117

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

Rep: Reputation: 34
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:

http://strangeworlds.co.uk/git/?p=sl...eme.SlackBuild

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


Reply


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
Trackbacks are Off
Pingbacks are On
Refbacks are 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


All times are GMT -5. The time now is 01:31 AM.

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