[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Suite of Color Themes for console
From: |
Tim Johnson |
Subject: |
Re: Suite of Color Themes for console |
Date: |
Fri, 24 Oct 2014 07:43:00 -0800 |
User-agent: |
Mutt/1.4.2.3i |
* 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
- Suite of Color Themes for console, Tim Johnson, 2014/10/21
- Re: Suite of Color Themes for console, John Mastro, 2014/10/21
- Re: Suite of Color Themes for console, Alexis, 2014/10/21
- Re: Suite of Color Themes for console, Tim Johnson, 2014/10/21
- Re: Suite of Color Themes for console, Alexis, 2014/10/22
- Re: Suite of Color Themes for console, Jacob Gerlach, 2014/10/22
- RE: Suite of Color Themes for console, Drew Adams, 2014/10/22
- Re: Suite of Color Themes for console, Sharon Kimble, 2014/10/23
- Re: Suite of Color Themes for console, Jacob Gerlach, 2014/10/24
- Re: Suite of Color Themes for console,
Tim Johnson <=
Re: Suite of Color Themes for console, Tim Johnson, 2014/10/22