From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.devel Subject: Re: Color themes Date: Sun, 9 Aug 2009 20:05:37 +0200 Message-ID: References: <87d47hoox5.fsf@stupidchicken.com> <87hbwp32ep.fsf@catnip.gol.com> <432BC810AC84409882C7E7FB5183D8DD@us.oracle.com> <8763d516ox.fsf@mail.jurta.org> <874osim3df.fsf_-_@mail.jurta.org> <87d475lmc1.fsf@cyd.mit.edu> <874oshx8p2.fsf@cyd.mit.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1249841159 11203 80.91.229.12 (9 Aug 2009 18:05:59 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 9 Aug 2009 18:05:59 +0000 (UTC) Cc: David De La Harpe Golden , joakim@verona.se, emacs-devel@gnu.org, Juri Linkov , Dan Nicolaescu , Stefan Monnier , Leo , Drew Adams , Miles Bader To: Chong Yidong Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Aug 09 20:05:50 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MaCmE-0004zO-7m for ged-emacs-devel@m.gmane.org; Sun, 09 Aug 2009 20:05:50 +0200 Original-Received: from localhost ([127.0.0.1]:47201 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MaCmD-00054K-Hf for ged-emacs-devel@m.gmane.org; Sun, 09 Aug 2009 14:05:49 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MaCm8-00054D-A5 for emacs-devel@gnu.org; Sun, 09 Aug 2009 14:05:44 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MaCm3-00053Z-FZ for emacs-devel@gnu.org; Sun, 09 Aug 2009 14:05:43 -0400 Original-Received: from [199.232.76.173] (port=36172 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MaCm3-00053W-CK for emacs-devel@gnu.org; Sun, 09 Aug 2009 14:05:39 -0400 Original-Received: from an-out-0708.google.com ([209.85.132.245]:2293) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MaCm1-0005ve-Kd; Sun, 09 Aug 2009 14:05:37 -0400 Original-Received: by an-out-0708.google.com with SMTP id b6so960157ana.21 for ; Sun, 09 Aug 2009 11:05:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=raWVknCTA6PFdgNSCXq4NP3KGo5J6w9isjaYRNUn6rg=; b=Uxmz7lc9CagqZTniwPneAkvRuQq6vcKwoqaM6t0EiG5oMT6pkUcfinXrGwct4vRAod WZlwXPuI2/qTrmvThODk3WqgynYEyk3JK3nab3s0BB4Ufz3ORB3T99auwV/iNoBV+emw T+t6N9MiOhHQ35mAUqLc1Yt9L2gwyvJQwOg4A= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=rTNtoJZCoSit8Xq/7RG21Bn4ahw5M/3TIXyCzzHbcGHkcuNWmmqHB6vt7MR1xvDiCg udv02IyQXRg6r50TEnkVHgOZjVQFUh+CF9sQxRIuiuR8sqTsRS4URDwBhTY0EU+9WHhc RX3JdbBokM+KeVN7te4YVObianWipq0Y2AkHo= Original-Received: by 10.100.106.12 with SMTP id e12mr2607696anc.89.1249841137312; Sun, 09 Aug 2009 11:05:37 -0700 (PDT) In-Reply-To: <874oshx8p2.fsf@cyd.mit.edu> X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:113865 Archived-At: On Sun, Aug 9, 2009 at 6:18 PM, Chong Yidong wrote: > This is exactly the kind of problem that Custom themes is intended to > solve. =C2=A0The code for *creating* custom themes is still a little bugg= y, > but the code for *using* it should work, and we ought to be able to make > use of it to set color themes. > > Here's an example. =C2=A0Create a file called forest-theme.el, with the > contents shown below, and put it in .emacs.d. =C2=A0Then do M-x enable-th= eme > RET forest RET, or customize custom-enabled-themes and add `forest' to > the list. > > So if we want to use this mechanism to implement color themes, it's just > a matter of adding some *-theme.el files to the load path, and adding a > command to add that theme to custom-enabled-themes. > > As you can see, (i) your existing face customizations, if any, will > override the color theme, as they should, and (ii) it doesn't take a lot > of code to define a color theme using this method. Thanks for the example. This looks very good (I don't mean the colors ... ;= -). I was kind of reinventing that. Sigh. Could we please get this working? Making it easy to use etc. Good prompting for themes so it is easy to switch, easy to reset ... Maybe some kind of "list-themes" with the doc strings... Then we can also make those Mac-themes, w32-themes, emacs-as-it-always-was-theme ...