From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: nathan.leclaire@gmail.com Newsgroups: gmane.emacs.help Subject: Re: Load color-theme in init.el Date: Mon, 13 Aug 2012 19:39:59 -0700 (PDT) Organization: http://groups.google.com Message-ID: <6a95b452-a586-45bd-970a-98f2b356669f@googlegroups.com> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: dough.gmane.org 1344912614 6007 80.91.229.3 (14 Aug 2012 02:50:14 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 14 Aug 2012 02:50:14 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Aug 14 04:50:15 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 1T17Cw-0000Hl-O1 for geh-help-gnu-emacs@m.gmane.org; Tue, 14 Aug 2012 04:50:14 +0200 Original-Received: from localhost ([::1]:46222 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T17Cv-0006le-Ro for geh-help-gnu-emacs@m.gmane.org; Mon, 13 Aug 2012 22:50:13 -0400 Original-Path: usenet.stanford.edu!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 38 Original-NNTP-Posting-Host: 98.209.17.33 Original-X-Trace: posting.google.com 1344912341 15472 127.0.0.1 (14 Aug 2012 02:45:41 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Tue, 14 Aug 2012 02:45:41 +0000 (UTC) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=98.209.17.33; posting-account=d0Vm7QoAAAA3dVVcv-zkS1chGMNUeMAB User-Agent: G2/1.0 Original-Xref: usenet.stanford.edu gnu.emacs.help:193966 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:86334 Archived-At: 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