Search code examples
emacsmacrosemacs23

.emacs file (script) doesn't work


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


Solution

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

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