Theme looper for Emacs 24
Emacs Lisp
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
LICENSE
README.md
theme-looper-tests.el
theme-looper.el

README.md

theme-looper

MELPA-Stable MELPA Marmalade
License Gratipay

A color-theme looper for Emacs 24.

Background

(you can skip to Usage)

Emacs 24 comes with a set of pre-installed color-themes that can be enabled by a simple command like:

M-x load-theme RET wombat

The above command enables (rather activates) 'wombat' theme. However, when you get lazy like I did, you need something like theme-looper.el. So, if you have a list of your favorite color-themes and you want to cycle thru them with simple key-strokes, you've come to the right place.

Installation

Manual

Save the file 'theme-looper.el' to disk and add the directory containing it to 'load-path' using a command in your '.emacs' file like:

(add-to-list 'load-path "~/.emacs.d/")

The above line assumes that you've placed the file into the Emacs directory '.emacs.d'.

Start the package with:

(require 'theme-looper)

MELPA-Stable / MELPA / Marmalade

If you have MELPA-Stable, MELPA or Marmalade added as a repository to your Emacs, you can just install theme-looper with

M-x package-install theme-looper RET

Usage

Optional: Set the list of your favorite color themes:

(theme-looper-set-theme-set '(wombat tango-dark wheatgrass))

Optional: Set the list of ignored themes:

(theme-looper-set-ignored-themes '(cobalt))

Optional: Set both, in which case only the favorite themes that are not within the ones to be ignored are used.

Set up your key-bindings:

(global-set-key (kbd "C-|") 'theme-looper-enable-next-theme)
(global-set-key (kbd "C-\") 'theme-looper-enable-random-theme)

Optional: Set additional customization to be applied after every theme switch:

(theme-looper-set-customizations 'my-func)