From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Patrick Wang Newsgroups: gmane.emacs.help Subject: Load color-theme in init.el Date: Sat, 21 Jul 2012 09:12:17 -0700 (PDT) Organization: http://groups.google.com Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: dough.gmane.org 1342887319 7512 80.91.229.3 (21 Jul 2012 16:15:19 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 21 Jul 2012 16:15:19 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Jul 21 18:15:20 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SscKp-000195-VL for geh-help-gnu-emacs@m.gmane.org; Sat, 21 Jul 2012 18:15:16 +0200 Original-Received: from localhost ([::1]:41643 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SscKp-0005rR-1W for geh-help-gnu-emacs@m.gmane.org; Sat, 21 Jul 2012 12:15:15 -0400 Original-Path: usenet.stanford.edu!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 16 Original-NNTP-Posting-Host: 111.248.168.45 Original-X-Trace: posting.google.com 1342887138 2847 127.0.0.1 (21 Jul 2012 16:12:18 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Sat, 21 Jul 2012 16:12:18 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=111.248.168.45; posting-account=j66kDQoAAAALLEQRD4jElHY21n47TjL8 User-Agent: G2/1.0 Original-Xref: usenet.stanford.edu gnu.emacs.help:193592 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:85965 Archived-At: 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