help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Load color-theme in init.el


From: nathan . leclaire
Subject: Re: Load color-theme in init.el
Date: Mon, 13 Aug 2012 19:39:59 -0700 (PDT)
User-agent: G2/1.0

On Saturday, July 21, 2012 12:12:17 PM UTC-4, Patrick Wang wrote:
> Hi,
> 
> 
> 
> I am using emacs 24.1.1 on Mac OS X Lion. I installed color-theme via emacs 
> package and try to load a color theme in init.el. Therefore I added following 
> lines into my init.el
> 
> 
> 
>  (require 'color-theme)
> 
>  (setq color-theme-is-global t)
> 
>  (color-theme-tty-dark)
> 
> 
> 
> However, after I restarted emacs, I got an error message "File error: Cannot 
> open load file, color-theme," and color scheme wasn't changed.
> 
> 
> 
> It seems that init.el is evaluated before packages are loaded. If I evaluate 
> init.el using "eval-buffer" after emacs is launched, color-theme can be found 
> and color will be changed.
> 
> 
> 
> Can anyone give me a hand? Thanks!
> 
> 
> 
> 
> 
> Patrick

Patrick, did you ever figure out the solution to this problem?  I am having the 
same issue.  M - x eval-buffer works great for my .emacs file but it won't load 
regularly.

Thanks,

Nathan


reply via email to

[Prev in Thread] Current Thread [Next in Thread]