[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master 3805110 14/26: Reorganize faces. Remove eval macroexpand.
From: |
Jackson Ray Hamilton |
Subject: |
[elpa] master 3805110 14/26: Reorganize faces. Remove eval macroexpand. |
Date: |
Sat, 14 Feb 2015 08:19:36 +0000 |
branch: master
commit 3805110d29ab6c37ed8de6b8d2906b5577a737d8
Author: Jackson Ray Hamilton <address@hidden>
Commit: Jackson Ray Hamilton <address@hidden>
Reorganize faces. Remove eval macroexpand.
---
context-coloring.el | 32 ++++++++++++++++----------------
1 files changed, 16 insertions(+), 16 deletions(-)
diff --git a/context-coloring.el b/context-coloring.el
index 341efe8..c5a77fc 100644
--- a/context-coloring.el
+++ b/context-coloring.el
@@ -69,17 +69,13 @@
and DARK backgrounds."
(let ((face (intern (format "context-coloring-level-%s-face" level)))
(doc (format "Context coloring face, level %s." level)))
- (eval
- (macroexpand
- `(defface ,face
- '((((type tty)) (:foreground ,tty))
- (((background light)) (:foreground ,light))
- (((background dark)) (:foreground ,dark)))
- ,doc
- :group 'context-coloring)))))
-
-(defvar context-coloring-maximum-face nil
- "The highest face available for coloring.")
+ (custom-declare-face
+ face
+ `((((type tty)) (:foreground ,tty))
+ (((background light)) (:foreground ,light))
+ (((background dark)) (:foreground ,dark)))
+ doc
+ :group 'context-coloring)))
(defun context-coloring-defface-default (level)
"Define a face for LEVEL with the default neutral colors."
@@ -94,12 +90,20 @@ and DARK backgrounds."
(context-coloring-defface 6 "red" "#008000" "#ffe390")
(context-coloring-defface-default 7)
+(defvar context-coloring-maximum-face nil
+ "The highest face available for coloring.")
+
+(defvar context-coloring-original-maximum-face nil
+ "Value for `context-coloring-maximum-face' to fall back to
+ when all themes have been disabled.")
+
(setq context-coloring-maximum-face 7)
+
(setq context-coloring-original-maximum-face
context-coloring-maximum-face)
;; Theme authors can have up to 26 levels: 1 (0th) for globals, 24 (1st-24th)
-;; for in-betweens, and 1 (25th) for infinity.
+;; for nested levels, and 1 (25th) for infinity.
(dotimes (number 18)
(context-coloring-defface-default (+ number context-coloring-maximum-face
1)))
@@ -633,10 +637,6 @@ THEME."
(context-coloring-warn-theme-originally-set theme))
(context-coloring-apply-theme theme))))))
-(defvar context-coloring-original-maximum-face nil
- "Value for `context-coloring-maximum-face' to fall back to
- when all themes have been disabled.")
-
(defadvice enable-theme (after context-coloring-enable-theme (theme) activate)
"Enable colors for context themes just-in-time. We can't set
faces for custom themes that might not exist yet."
- [elpa] master 351142e 07/26: More disciplined use of `if'., (continued)
- [elpa] master 351142e 07/26: More disciplined use of `if'., Jackson Ray Hamilton, 2015/02/14
- [elpa] master e68d00b 11/26: Whitespace., Jackson Ray Hamilton, 2015/02/14
- [elpa] master c125d9f 12/26: Reorganize defvars and defcustoms., Jackson Ray Hamilton, 2015/02/14
- [elpa] master a49b024 15/26: Whitespace., Jackson Ray Hamilton, 2015/02/14
- [elpa] master 0681e94 13/26: Remove `set-colors' and `set-colors-default'., Jackson Ray Hamilton, 2015/02/14
- [elpa] master e5d512f 10/26: "Misfeature.", Jackson Ray Hamilton, 2015/02/14
- [elpa] master 25a8d13 16/26: Documentation., Jackson Ray Hamilton, 2015/02/14
- [elpa] master 4c3d1da 17/26: Rename `defface-default' to `defface-neutral'., Jackson Ray Hamilton, 2015/02/14
- [elpa] master 8367e19 18/26: Rename `level-face' functions., Jackson Ray Hamilton, 2015/02/14
- [elpa] master 3d91840 22/26: Remove `context-coloring-benchmark-colorization'., Jackson Ray Hamilton, 2015/02/14
- [elpa] master 3805110 14/26: Reorganize faces. Remove eval macroexpand.,
Jackson Ray Hamilton <=
- [elpa] master a7db850 20/26: Cleanup documentation., Jackson Ray Hamilton, 2015/02/14
- [elpa] master bae456d 19/26: Use imperative for documentation., Jackson Ray Hamilton, 2015/02/14
- [elpa] master 45c0d1a 23/26: Add `:setup' and `:teardown' properties to dispatches., Jackson Ray Hamilton, 2015/02/14
- [elpa] master f4e1cbc 25/26: Version 6.0.0., Jackson Ray Hamilton, 2015/02/14
- [elpa] master 8e5674f 21/26: Cleanup documentation., Jackson Ray Hamilton, 2015/02/14
- [elpa] master f52a5e5 26/26: Merge commit 'f4e1cbc5386fbf197ff8bcb6a9275f17c9cbe8e4' from context-coloring, Jackson Ray Hamilton, 2015/02/14
- [elpa] master e2d3320 24/26: Add `uncompile' Makefile task., Jackson Ray Hamilton, 2015/02/14