From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Sharon Kimble Newsgroups: gmane.emacs.help Subject: Re: Suite of Color Themes for console Date: Fri, 24 Oct 2014 00:42:12 +0100 Message-ID: <87r3xy1hgr.fsf@skimble.plus.com> References: <20141021233258.GB94184@mail.akwebsoft.com> <877fztyn9g.fsf@gmail.com> <20141022003528.GC94184@mail.akwebsoft.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Trace: ger.gmane.org 1414107774 19557 80.91.229.3 (23 Oct 2014 23:42:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 23 Oct 2014 23:42:54 +0000 (UTC) Cc: help-gnu-emacs To: Jacob Gerlach Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Oct 24 01:42:49 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 1XhS1p-0002QG-3Y for geh-help-gnu-emacs@m.gmane.org; Fri, 24 Oct 2014 01:42:49 +0200 Original-Received: from localhost ([::1]:44100 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XhS1o-0003Ye-I9 for geh-help-gnu-emacs@m.gmane.org; Thu, 23 Oct 2014 19:42:48 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49333) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XhS1W-0003XI-Oq for help-gnu-emacs@gnu.org; Thu, 23 Oct 2014 19:42:35 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XhS1S-00018N-2U for help-gnu-emacs@gnu.org; Thu, 23 Oct 2014 19:42:30 -0400 Original-Received: from avasout04.plus.net ([212.159.14.19]:60436) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XhS1R-00012W-Pk for help-gnu-emacs@gnu.org; Thu, 23 Oct 2014 19:42:26 -0400 Original-Received: from london ([46.208.49.40]) by avasout04 with smtp id 6niL1p0010s20Ky01niM84; Fri, 24 Oct 2014 00:42:22 +0100 X-CM-Score: 0.00 X-CNFS-Analysis: v=2.1 cv=VomtAoGn c=1 sm=1 tr=0 a=TFhflJmy72J+D2HLcJUc6g==:117 a=TFhflJmy72J+D2HLcJUc6g==:17 a=0Bzu9jTXAAAA:8 a=acKW_TVRZv8A:10 a=EBOSESyhAAAA:8 a=pGLkceISAAAA:8 a=YVGSICyFAAAA:8 a=LEvwCxz8AAAA:8 a=LlzXLoV6AAAA:8 a=xtERp6CFAAAA:8 a=iI7HsYTVAAAA:8 a=qY1o2xvpJhYNEjTFTEgA:9 a=_LYbRniCwUV-Ik4u:21 a=NVjrEowPhYp_WoWi:21 a=ufX-wBQeEYUAaoZd4GgA:9 X-AUTH: skimble:2500 In-Reply-To: (Jacob Gerlach's message of "Wed, 22 Oct 2014 10:43:12 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x (no timestamps) [generic] X-Received-From: 212.159.14.19 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:100575 Archived-At: --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Jacob Gerlach writes: > I believe there is some important distinction between custom themes and > color themes (although I can't recall what it is). My setup is below > (collected from various sources like the wiki - I don't claim any credit). > I think this is the "wrapper" you're looking for. > > (add-to-list 'custom-theme-load-path > (file-name-as-directory > "/home/jacob/.emacs.d/replace-colorthemes")) > > ;; Cycle through this set of themes > (setq my-themes '(robin-hood charcoal-black classic dark-blue desert)) > > (setq my-cur-theme nil) > (defun cycle-my-theme () > "Cycle through a list of themes, my-themes" > (interactive) > (when my-cur-theme > (disable-theme my-cur-theme) > (setq my-themes (append my-themes (list my-cur-theme)))) > (setq my-cur-theme (pop my-themes)) > (load-theme my-cur-theme t)) > > ;; Switch to the first theme in the list above > (cycle-my-theme) > (global-set-key (kbd "C-t") 'cycle-my-theme) > > The first theme in "my-themes" will be loaded on startup, and you can bind > cycling (as I have to C-t) to make it quick and easy. Thanks for this Jacob, it is very useful. But I do wonder if it could be "tweaked" such that it displays the name of the theme in that black bar at the top of emacs just before it gets onto the system-bar of the desktop? Also, I've got a lot of themes from ELPA, which on this box is at "/home/boudiccas/.emacs.d/elpa" which I would dearly love to use, like this, and it works! =2D-8<---------------cut here---------------start------------->8--- (add-to-list 'custom-theme-load-path (file-name-as-directory "/home/boudiccas/git/replace-colorthemes")) (add-to-list 'custom-theme-load-path "/home/boudiccas/.emacs.d/themes") (add-to-list 'custom-theme-load-path "/home/boudiccas/.emacs.d/elpa") =2D-8<---------------cut here---------------end--------------->8--- Any ideas please? Thanks Sharon. > On Tue, Oct 21, 2014 at 8:35 PM, Tim Johnson wrote: > >> * Alexis [141021 16:22]: >> > >> > Tim Johnson writes: >> > >> > > 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. >> > >> > Aiui, the theming system has been deliberately designed to allow theme >> > additivity, i.e. enabling theme A doesn't automatically disable theme B >> > by default. So if you want theme B to completely replace theme A, you >> > need to M-x disable-theme before enabling theme B. >> Aha! so where I have >> ["Badger - Dark" (load-theme 'badger) :active t] >> >> I could replace with >> ["Badger - Dark" (disable-previous-and-load-new-theme 'badger) :active= t] >> Where I have 'disable-previous-and-load-new-theme as a wrapper >> that first disables ... >> >> Am I correct? >> >> Thanks for the reply and also thanks to John Mastro. >> -- >> Tim >> tim at tee jay forty nine dot com or akwebsoft dot com >> http://www.akwebsoft.com, http://www.tj49.com >> >> =2D-=20 A taste of linux =3D http://www.sharons.org.uk my git repo =3D https://bitbucket.org/boudiccas/dots TGmeds =3D http://www.tgmeds.org.uk Debian testing, fluxbox 1.3.5, emacs 24.4.1.0 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJUSZJVAAoJEDaBgBkK+INb4mYP/2WlXJwuA1dqRYhcJ9CiPxCQ /0m0ikFsy3yhivclffjbuuYIAoaehiJy/OI8wustEY0zyJRrxAEtY2X0jjuKL41Y uHEGE1eRBiV+nK9nsoexF9tqAKEIETr1w2Lw7aPEFCE9X/vOEMXLqs5si40g7tfN NC6JE6B9lOwhun8It3eOJWh1vFp+Y9/KCh9wWNJE3Z+qNoLctNE0pxWJToU/+T8w vJIutxL7L2ZIoLStCUZCxA9MBFI7FrcF356QDiaJeEg2DHDO9BYh2BiEcSjHkzdp OZ7R9RIiQjMoLAPTPBrEkJVZ6vv8/57F1terMXoNwoxQy1ZUffE5HQGjLZsNwhwA IpYSq3WS2T5DrGaBFj9svjfBswJdVrPRyr4SLnh1OWUB8Wio1AG/xRAOy0yOrVys DlQ1CgZ8A6yfh2JQi8/3L3p4mOGGUVc0xEtdSFjTe7W8nX9bL9CQKZ2wBIbqkBQD sRzd0c8KjdaVgx1yUuE9t7mfZSiLCD9aPgYVM0U/nfyPWlkss/fc4OidUPs0nvFY 4xTKoZqcI210+7EGuWiUw6jAt4Oi+fk9IdfS4pTsM8zhGNpTe5BP3/P2v/AkKvli waXUUPi1ONOjJj+JuHrVE0r65DlGb5FUpWbrZuYOh2cFH4rDUw4DpY4v80vjgLs4 0ZTG9bzBxe7Dy7E5kafy =jruP -----END PGP SIGNATURE----- --=-=-=--