You are not logged in.

#1 2008-10-15 17:55:00

pjjanak
Member
Registered: 2008-08-17
Posts: 128

[SOLVED] emacs-color-theme

So, I recently got an update to emacs, I believe, which, for some reason, uninstalled emacs-color-theme. Upon reinstalling it, I can't seem to set my color theme using my .emacs file anymore. Here's my .emacs:

File Edit Options Buffers Tools Emacs-Lisp Help                                 
(custom-set-variables
  ;; custom-set-variables was added by Custom.                                  
  ;; If you edit it by hand, you could mess it up, so be careful.               
  ;; Your init file should contain only one such instance.                      
  ;; If there is more than one, they won't work right.                          
 '(inhibit-startup-screen t))
(custom-set-faces
  ;; custom-set-faces was added by Custom.                                      
  ;; If you edit it by hand, you could mess it up, so be careful.               
  ;; Your init file should contain only one such instance.                      
  ;; If there is more than one, they won't work right.                          
 )
(require 'color-theme)
(color-theme-classic)

And here is the error I get when starting emacs:

An error has occurred while loading `/home/peter/.emacs':

Symbol's function definition is void: color-theme-classic

To ensure normal operation, you should investigate and remove the
cause of the error in your initialization file.  Start Emacs with
the `--debug-init' option to view a complete error backtrace.

Loading cl-macs...done
For information about GNU Emacs and the GNU system, type C-h C-a.

Help!

Peter

Last edited by pjjanak (2008-10-15 18:26:47)

Offline

#2 2008-10-15 18:08:56

kett
Member
Registered: 2008-04-21
Posts: 104

Re: [SOLVED] emacs-color-theme

After

(require 'color-theme)

add the line

(color-theme-initialize)

I'm not sure what caused the change, but for whatever reason the color themes aren't automatically loaded with the require line anymore.

Offline

#3 2008-10-15 18:26:26

pjjanak
Member
Registered: 2008-08-17
Posts: 128

Re: [SOLVED] emacs-color-theme

Huzzah! Thanks kett. Was this document somewhere?

Peter

Offline

#4 2008-10-15 18:30:43

kett
Member
Registered: 2008-04-21
Posts: 104

Re: [SOLVED] emacs-color-theme

Not that I know of.  I found it by experimentation.

Offline

#5 2008-10-15 21:21:55

anrxc
Member
From: Croatia
Registered: 2008-03-22
Posts: 833
Website

Re: [SOLVED] emacs-color-theme

pjjanak wrote:

Was this document somewhere?

Sure it is; http://emacswiki.org/cgi-bin/wiki/ColorTheme#toc1


You need to install an RTFM interface.

Offline

#6 2010-11-13 09:38:31

graemev
Member
Registered: 2010-11-13
Posts: 1

Re: [SOLVED] emacs-color-theme

Thanks saved my bacon also ... 1st time it hit was installing Ubuntu 10.10
As coloUr management in Emacs get more complex I get less an less interested ... all I look for now
is how to re-enable the 'classics colours' ... though I'd settle for just being able to start emacs without colours blowing up once again.

Offline

Board footer

Powered by FluxBB