From: Tim Johnson <tim@akwebsoft.com>
To: help-gnu-emacs <help-gnu-emacs@gnu.org>
Subject: Re: Suite of Color Themes for console
Date: Fri, 24 Oct 2014 07:43:00 -0800 [thread overview]
Message-ID: <20141024154300.GA1671@mail.akwebsoft.com> (raw)
In-Reply-To: <87r3xy1hgr.fsf@skimble.plus.com>
* Sharon Kimble <boudiccas@skimble.plus.com> [141023 15:43]:
> Jacob Gerlach <jacobgerlach@gmail.com> 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!
>
> --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")
> --8<---------------cut here---------------end--------------->8---
>
>
> Any ideas please?
>
> Thanks
> Sharon.
What I would do (bearing in mind my limited knowledge of emacs and
the fact that I prefer console mode) is have a variable that
keeps track of the current theme - in my coded solution that
would be 'tj-current-theme and include that variable in
mode-line-format. That should be easy but also redundant as it
would appear in every window.
--
Tim
tim at tee jay forty nine dot com or akwebsoft dot com
http://www.akwebsoft.com, http://www.tj49.com
next prev parent reply other threads:[~2014-10-24 15:43 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-21 23:32 Suite of Color Themes for console Tim Johnson
2014-10-22 0:10 ` Alexis
2014-10-22 0:35 ` Tim Johnson
2014-10-22 6:48 ` Alexis
2014-10-22 14:43 ` Jacob Gerlach
2014-10-22 14:54 ` Drew Adams
2014-10-23 23:42 ` Sharon Kimble
2014-10-24 14:57 ` Jacob Gerlach
2014-10-24 15:43 ` Tim Johnson [this message]
2014-10-22 0:10 ` John Mastro
2014-10-22 21:22 ` Tim Johnson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20141024154300.GA1671@mail.akwebsoft.com \
--to=tim@akwebsoft.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.