Question

I've just installed new distribution of Ubuntu 10.10.2010, then installed emacs23, I installed also emacs goodies for color themes.

I made the file .emacs in my home directory with the code:

(require 'color-theme)
   (setq color-theme-is-global t)
   (color-theme-euphoria)

but it doesn't work, with any code even (setq inhibit-startup-message t) I made a new file named .emacs.el but nothing. There is a folder with the name ".emacs.d" generated by the installation. I even tried putting emacs file in it, still nothing.

now I think any startup script won't work. so what should I do to know why Emacs doesn't read that file ?


Update: I deleted all the mess files and left the ~/.emacs.el file and now the code is :

(setq inhibit-startup-message   t)
(require 'color-theme)
(setq color-theme-is-global   t)
(color-theme-euphoria)

but gives error: Warning (initialization): An error occurred while loading `/home/marmoush/.emacs.el': Symbol's function definition is void: color-theme-euphoria

Was it helpful?

Solution 2

I don't know but when I used this code it worked !

(require 'color-theme)
(color-theme-initialize)
(color-theme-robin-hood)

OTHER TIPS

Weird. Try saving it as ~/.emacs.d/init.el

First, delete your .emacs file. When Emacs starts up, customize some values using the menu and save them. A new .emacs file should be created somewhere. Find out where, and then edit it as you please.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top