From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tim Johnson Newsgroups: gmane.emacs.help Subject: Re: Suite of Color Themes for console Date: Wed, 22 Oct 2014 13:22:36 -0800 Organization: AkWebsoft Message-ID: <20141022212236.GE94184@mail.akwebsoft.com> References: <20141021233258.GB94184@mail.akwebsoft.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1414012990 996 80.91.229.3 (22 Oct 2014 21:23:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 22 Oct 2014 21:23:10 +0000 (UTC) To: Emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Oct 22 23:23:00 2014 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 1Xh3My-0007h1-24 for geh-help-gnu-emacs@m.gmane.org; Wed, 22 Oct 2014 23:23:00 +0200 Original-Received: from localhost ([::1]:60935 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xh3Mx-0000Wp-KU for geh-help-gnu-emacs@m.gmane.org; Wed, 22 Oct 2014 17:22:59 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55893) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xh3Mh-0000Mc-Al for Help-gnu-emacs@gnu.org; Wed, 22 Oct 2014 17:22:48 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xh3Mc-0005xU-Bh for Help-gnu-emacs@gnu.org; Wed, 22 Oct 2014 17:22:43 -0400 Original-Received: from 191-232-4-64.mtaonline.net ([64.4.232.191]:50134 helo=tj49.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xh3Mc-0005tK-3r for Help-gnu-emacs@gnu.org; Wed, 22 Oct 2014 17:22:38 -0400 Original-Received: by tj49.com (Postfix, from userid 501) id A68985130EFA; Wed, 22 Oct 2014 13:22:36 -0800 (AKDT) Mail-Followup-To: Emacs Content-Disposition: inline In-Reply-To: <20141021233258.GB94184@mail.akwebsoft.com> User-Agent: Mutt/1.4.2.3i X-detected-operating-system: by eggs.gnu.org: Mac OS X 10.x X-Received-From: 64.4.232.191 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:100557 Archived-At: * Tim Johnson [141021 15:33]: > I'm "breaking in" myself on emacs 24 running out of iTerm on Mac OS > X 10.7. I need to be able to switch color themes from dark to light > to blue to off-white (or something similar) depending on eyestrain > and ambient light in my environment. > > I've downloaded a whole lot of color themes and have been > experimenting with them. In some cases I find "munged" colors when I > switch color schemes - and I'm guessing that is because when Theme B > follows theme A, Theme B may not have all of the same attributes set > as Theme A and thus "inherits" colors from Theme A. I don't really > care for that. > > Example : fogus appears to have no settings for 'link and radiance > does, so when I switch from radiance to fogus, links show up with > the same background and foreground as radiance. > > Has anyone a suite of color themes that they would be willing to > recommend or to share? > > Alternatively can anyone recommend a remedy for my example? I sure appreciate the replies that I got on this topic. Emacs is just like a box of chocolates! The following code works for me as a solution (so far) : ;; set up a variable and initialize it (defvar tj-current-theme 'better-tango-dark "Current Color Theme") ;; Install the default scheme (load-theme tj-current-theme t) ;; Function to first disable current theme, then create ;; and install a new one (defun tj-load-theme (new-theme) "Disable existing themes before loading new theme" (interactive) (disable-theme tj-current-theme) (setq tj-current-theme new-theme) (load-theme tj-current-theme)) ;; Example menu (easy-menu-add-item ;; console nil nil (easy-menu-create-menu "Colors" '(["1) Blue - Blackboard" (tj-load-theme 'blackboard) :active t] ["2) Dark - Better Tango" (tj-load-theme 'better-tango-dark) :active t] ["3) Dark - Junio" (tj-load-theme 'junio) :active t] ["4) Dark - Tango" (tj-load-theme 'better-tango-dark) :active t] ["5) Light - Github" (tj-load-theme 'github) :active t] ["6) Light - Professional" (tj-load-theme 'professional) :active t] ["7) Light - Snowish" (tj-load-theme 'snowish) :active t] ["8) Light - Tango" (tj-load-theme 'tango) :active t] ["9) Medium Blue - Resolve" (tj-load-theme 'resolve) :active t] )))) thanks and best wishes -- Tim tim at tee jay forty nine dot com or akwebsoft dot com http://www.akwebsoft.com, http://www.tj49.com