From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Deniz Dogan Newsgroups: gmane.emacs.help Subject: Re: load color-theme when start emacs Date: Sat, 19 Mar 2011 14:06:11 +0100 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 1300540043 28999 80.91.229.12 (19 Mar 2011 13:07:23 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 19 Mar 2011 13:07:23 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Pedro Costa Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Mar 19 14:07:11 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 1Q0vs5-0005Rx-G4 for geh-help-gnu-emacs@m.gmane.org; Sat, 19 Mar 2011 14:07:09 +0100 Original-Received: from localhost ([127.0.0.1]:47343 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q0vs4-0000vg-O0 for geh-help-gnu-emacs@m.gmane.org; Sat, 19 Mar 2011 09:07:08 -0400 Original-Received: from [140.186.70.92] (port=60877 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q0vrV-0000oi-7B for help-gnu-emacs@gnu.org; Sat, 19 Mar 2011 09:06:34 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q0vrU-0002Wb-BS for help-gnu-emacs@gnu.org; Sat, 19 Mar 2011 09:06:33 -0400 Original-Received: from mail-iw0-f169.google.com ([209.85.214.169]:36077) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q0vrU-0002WR-8e for help-gnu-emacs@gnu.org; Sat, 19 Mar 2011 09:06:32 -0400 Original-Received: by iwl42 with SMTP id 42so6156411iwl.0 for ; Sat, 19 Mar 2011 06:06:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type:content-transfer-encoding; bh=dSEsuHpQNs5j+fHI+arXk2XCtxRilAjrdUL/otf3Gl4=; b=kXP/vJt/MgKJh4XXsjeSdtEMhq7wvfjEiG/XCPsDyzymzSZQWSVrZ17fuZge8ruLLi qHF7c7O+Gn+fmaLBhEWTGJiaDU1zYmc6DKYZBwxHONoa7t2YBV9dm3JHjB5/u43knX5s zvQfm+OYwYna6/D16+nfbxPrQkp6GMSp6oXAI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=YUus5Vg6g4xmGLaUmYNay0Vd2V6Y2WKhx+sfjJlwbWFpqPfDbspzT22bgBM46OWkpR Gxn+rYM9QSBoHo/vGmIeyclakuvrpgDdbqe5yFpbllhvKvtJBt1gRNySPC+GRop5UmGu UGTdmU5iuOHfini7/PkzhoyOgfRBjqT9cg2fI= Original-Received: by 10.231.116.139 with SMTP id m11mr358747ibq.165.1300539991179; Sat, 19 Mar 2011 06:06:31 -0700 (PDT) Original-Received: by 10.231.199.77 with HTTP; Sat, 19 Mar 2011 06:06:11 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.214.169 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:80274 Archived-At: 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 (setq color-theme-is-global t) (color-theme-midnight)) --=20 Deniz Dogan