all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Patrick Wang <p@patrickz.net>
To: help-gnu-emacs@gnu.org
Subject: Load color-theme in init.el
Date: Sat, 21 Jul 2012 09:12:17 -0700 (PDT)	[thread overview]
Message-ID: <c07436b4-bd37-4c3b-8019-8c4ff5a34f4e@googlegroups.com> (raw)

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


             reply	other threads:[~2012-07-21 16:12 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-21 16:12 Patrick Wang [this message]
2012-08-14  2:39 ` Load color-theme in init.el nathan.leclaire
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=c07436b4-bd37-4c3b-8019-8c4ff5a34f4e@googlegroups.com \
    --to=p@patrickz.net \
    --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.