all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: nathan.leclaire@gmail.com
To: help-gnu-emacs@gnu.org
Subject: Re: Load color-theme in init.el
Date: Mon, 13 Aug 2012 19:39:59 -0700 (PDT)	[thread overview]
Message-ID: <6a95b452-a586-45bd-970a-98f2b356669f@googlegroups.com> (raw)
In-Reply-To: <c07436b4-bd37-4c3b-8019-8c4ff5a34f4e@googlegroups.com>

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	other threads:[~2012-08-14  2:39 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-21 16:12 Load color-theme in init.el Patrick Wang
2012-08-14  2:39 ` nathan.leclaire [this message]
2012-08-14  8:48   ` Peter Dyballa
2012-08-15  0:30     ` Nathan LeClaire
2012-08-15  1:23       ` Drew Adams
2012-08-15 13:26         ` Nathan LeClaire
2012-08-15 14:03           ` Drew Adams
2012-08-15 20:37         ` Suvayu Ali
2012-08-15 21:18           ` Drew Adams

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=6a95b452-a586-45bd-970a-98f2b356669f@googlegroups.com \
    --to=nathan.leclaire@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.