[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[STUMP] Patch for User-Defined Colors
From: |
Andrew Knapp |
Subject: |
[STUMP] Patch for User-Defined Colors |
Date: |
Sat, 16 Jul 2011 18:58:03 -0700 |
Hello, I wanted to use StumpWM, but was turned off by the lack of
user-defined colors, since I want Zenburn everywhere. This patch adds
support for user-defined colors. In the variable *colors*, the custom
colors are represented as hex, similar to Emacs' colors: "#xxxxxx".
Here is my *colors*:
(defparameter *colors* (list "#8f8f8f" ;; dark grey
"#cc9393" ;; zenburn red
"#7f9f7f" ;; zenburn green
"#f0dfaf" ;; tan
"#8cd0d3" ;; blue
"#dc8cc3" ;; magenta
"#93e0e3" ;; cyan
"#dcdccc" ;; white
"#dfaf8f" ;; orange
))
For all other custom color needs, the patch relies on type-checking:
strings are looked up, while anything else is used as-is. Therefore, to
use custom colors, use something along the lines of the following:
(set-fg-color (make-color-hex "#dcdccc"))
make-color-hex takes a hexadecimal description string, and returns the
XColor that it represents.
--
Andy Knapp
user-colors.patch
Description: Text Data
- [STUMP] Patch for User-Defined Colors,
Andrew Knapp <=