https://github.com/ajsquared/color-theme-x
Convert Emacs Color Themes to X11 Resource Settings
https://github.com/ajsquared/color-theme-x
Last synced: about 1 year ago
JSON representation
Convert Emacs Color Themes to X11 Resource Settings
- Host: GitHub
- URL: https://github.com/ajsquared/color-theme-x
- Owner: ajsquared
- License: gpl-2.0
- Created: 2012-12-05T00:32:59.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2020-12-04T22:45:33.000Z (over 5 years ago)
- Last Synced: 2024-04-18T14:34:49.036Z (about 2 years ago)
- Language: Emacs Lisp
- Size: 87.9 KB
- Stars: 4
- Watchers: 1
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# color-theme-x
## Introduction
color-theme-x is an Emacs Lisp package that converts Emacs color themes to X11 resource settings. Applying color themes in this way allows Emacs to start up significantly faster than by loading the theme from Lisp code.
I forked color-theme-x from the file I found on the [Emacs wiki](http://emacswiki.org/emacs/color-theme-x.el) because I had some problems with getting it to work consistently.
## Installation
1. Place `color-theme-x.el` somewhere on your Emacs load path.
2. Add 1(require 'color-theme-x)` to your .emacs
`color-theme-x.el` is also available in Melpa. See the [setup instructions](https://github.com/melpa/melpa#usage) for information on using Melpa. Then you can run `M-x package-install color-theme-x` to install it.
## Customization
The default prefix for the X11 resources settings generated by color-theme-x is Emacs. In some environments this may need to be changed; for example you may need to change it to Emacs23 for the properties to by applied to an Emacs 23 installation. To support this, you can either
1. Add `(setq color-theme-x-resource-prefix "")` to your .emacs
2. `M-x customize-group RET color-theme-x RET` and customize the prefix there.
## Usage
1. `M-x color-theme-x RET RET `
2. This will create a buffer named `*color-theme-xresources*`. Copy the contents of that buffer to your `~/.Xresources` file.
3. Run `xrdb -merge ~/.Xresources`
Some pre-converted themes are available under `themes/`. I've included the theme I use as well as all of the themes in `color-theme-library.el` that ship with the `color-theme` package. I'll happily include any other themes you send me as well.