From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Husmann Newsgroups: gmane.emacs.help Subject: Re: load color-theme when start emacs Date: Sat, 19 Mar 2011 20:33:29 +0100 Message-ID: <4D850509.7040404@t-online.de> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1300563262 17498 80.91.229.12 (19 Mar 2011 19:34:22 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 19 Mar 2011 19:34:22 +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 Mar 19 20:34:18 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Q11uk-0003Rj-0a for geh-help-gnu-emacs@m.gmane.org; Sat, 19 Mar 2011 20:34:18 +0100 Original-Received: from localhost ([127.0.0.1]:34163 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q11ui-0000ek-UN for geh-help-gnu-emacs@m.gmane.org; Sat, 19 Mar 2011 15:34:17 -0400 Original-Received: from [140.186.70.92] (port=57557 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q11u9-0000e7-JZ for help-gnu-emacs@gnu.org; Sat, 19 Mar 2011 15:33:42 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q11u7-000697-Ga for help-gnu-emacs@gnu.org; Sat, 19 Mar 2011 15:33:41 -0400 Original-Received: from mailout06.t-online.de ([194.25.134.19]:37237) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q11u7-00068h-BN for help-gnu-emacs@gnu.org; Sat, 19 Mar 2011 15:33:39 -0400 Original-Received: from fwd22.aul.t-online.de (fwd22.aul.t-online.de ) by mailout06.t-online.de with smtp id 1Q11u4-0000IS-8s; Sat, 19 Mar 2011 20:33:36 +0100 Original-Received: from [192.168.178.21] (rIeU-qZJZhv4NzcunaeuNQG6nGtKmi6IAYBJc3QSfGSqi982LBbuNCjSrYAh4kmgH9@[91.4.68.43]) by fwd22.t-online.de with esmtp id 1Q11ty-0irznM0; Sat, 19 Mar 2011 20:33:30 +0100 User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.15) Gecko/20110307 Lanikai/3.1.9 In-Reply-To: X-ID: rIeU-qZJZhv4NzcunaeuNQG6nGtKmi6IAYBJc3QSfGSqi982LBbuNCjSrYAh4kmgH9 X-TOI-MSGID: 5395eeb3-d0e5-4ece-8409-08f4440a7424 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 194.25.134.19 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:80285 Archived-At: Am 19.03.2011 14:06, schrieb Deniz Dogan: > 2011/3/19 Pedro Costa : >> Hi, >> >> I would like to load a color-theme when I start emacs in X11. I've put >> this in .emacs, but it won't work. >> >> [code] >> (require 'color-theme) >> if(window-system >> (setq color-theme-is-global t) >> (color-theme-midnight)) >> [/code] >> >> How can I load this theme when I start emacs? >> > I don't use color-theme, but I believe this is what you mean: > > (require 'color-theme) > (when window-system > (setq color-theme-is-global t) > (color-theme-midnight)) > I have ;; color-theme (when window-system (require 'color-theme) (color-theme-initialize) (setq color-theme-is-global t) (color-theme-deep-blue)) ;; /color-theme at the very end of my .emacs file. Without the initialization the them names like color-theme-deep-blue are unknown. Regards Stefan