From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: suvayu ali Newsgroups: gmane.emacs.help Subject: Re: load color-theme when start emacs Date: Sat, 19 Mar 2011 08:14:05 -0700 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1300547706 586 80.91.229.12 (19 Mar 2011 15:15:06 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 19 Mar 2011 15:15:06 +0000 (UTC) To: Emacs mailing list Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Mar 19 16:15:02 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 1Q0xrp-00051i-Gm for geh-help-gnu-emacs@m.gmane.org; Sat, 19 Mar 2011 16:15:01 +0100 Original-Received: from localhost ([127.0.0.1]:34486 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q0xro-0005Px-Uf for geh-help-gnu-emacs@m.gmane.org; Sat, 19 Mar 2011 11:15:01 -0400 Original-Received: from [140.186.70.92] (port=37782 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q0xrJ-0005Oo-Gm for help-gnu-emacs@gnu.org; Sat, 19 Mar 2011 11:14:30 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q0xrI-0007dD-7O for help-gnu-emacs@gnu.org; Sat, 19 Mar 2011 11:14:29 -0400 Original-Received: from mail-bw0-f41.google.com ([209.85.214.41]:40055) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q0xrH-0007cw-TM for help-gnu-emacs@gnu.org; Sat, 19 Mar 2011 11:14:28 -0400 Original-Received: by bwz17 with SMTP id 17so4569659bwz.0 for ; Sat, 19 Mar 2011 08:14:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:in-reply-to:references:from :date:x-google-sender-auth:message-id:subject:to:content-type :content-transfer-encoding; bh=LgCqgafdVqvhrcA6AgIPOBIScjY+XDdZ56Om6PkdDUE=; b=ujk+qjDvTYH2omgJLTTkHpOsXu89p/nNyCrcBJE4g9Vpoh4p3dpfTmLUEo1HKJsP0d PkIYVAj51vVXiQQh4ygmXf7Lw1Fl0yg8NVDXhWirKa5RamyGfQSUplIHYBZFC27H4z7b GwhTWKwkjHGWeGmiLRmiweWB03rchmihUPY9w= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:content-type :content-transfer-encoding; b=h6q4FaY8kC7rKDzcEaN7S34cP1lygS23CfHG9NgOxYlirOz3jNhj6t9wMfmVouaB5c 2R97DnfWioksRtuQzN/Wn0C7rufl3zQhdCl+4B+cPDjEn3kTj5djfn179vjyRy7l+7ql a4ZnBO/BwdV81k4If/YHTylUEm38ABTkO/W0Q= Original-Received: by 10.204.154.219 with SMTP id p27mr1986534bkw.110.1300547665112; Sat, 19 Mar 2011 08:14:25 -0700 (PDT) Original-Received: by 10.204.45.225 with HTTP; Sat, 19 Mar 2011 08:14:05 -0700 (PDT) In-Reply-To: X-Google-Sender-Auth: g_uSf2CLZc6GucoD_BgLbfzXMH4 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.214.41 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:80277 Archived-At: On Sat, Mar 19, 2011 at 6:06 AM, Deniz Dogan wr= ote: > 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 >> =A0 (setq color-theme-is-global t) >> =A0 (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 > =A0(setq color-theme-is-global t) > =A0(color-theme-midnight)) > That should be enough. This is my setup https://github.com/suvayu/.emacs.d/blob/master/init.el#L99 --=20 Suvayu Open source is the future. It sets us free.