summaryrefslogtreecommitdiff
path: root/lisp/progmodes/cperl-mode.el
diff options
context:
space:
mode:
authorJuanma Barranquero <lekktu@gmail.com>2003-01-18 15:32:16 +0000
committerJuanma Barranquero <lekktu@gmail.com>2003-01-18 15:32:16 +0000
commit5cc679abf39af50a947ff77542122aa9112bd1d4 (patch)
tree008587213b322665aba211b5585f6998150c0967 /lisp/progmodes/cperl-mode.el
parentbc82cdfe1958d6be88df9657e9e311526882e271 (diff)
downloademacs-5cc679abf39af50a947ff77542122aa9112bd1d4.tar.gz
Don't make faces depend on window-system.
Diffstat (limited to 'lisp/progmodes/cperl-mode.el')
-rw-r--r--lisp/progmodes/cperl-mode.el88
1 files changed, 43 insertions, 45 deletions
diff --git a/lisp/progmodes/cperl-mode.el b/lisp/progmodes/cperl-mode.el
index 49bd228e280..86147a2ca73 100644
--- a/lisp/progmodes/cperl-mode.el
+++ b/lisp/progmodes/cperl-mode.el
@@ -544,51 +544,49 @@ when syntaxifying a chunk of buffer."
(repeat symbol)))))
:group 'cperl-faces)
-(if window-system
- (progn
- (defvar cperl-dark-background
- (cperl-choose-color "navy" "os2blue" "darkgreen"))
- (defvar cperl-dark-foreground
- (cperl-choose-color "orchid1" "orange"))
-
- (defface cperl-nonoverridable-face
- `((((class grayscale) (background light))
- (:background "Gray90" :slant italic :underline t))
- (((class grayscale) (background dark))
- (:foreground "Gray80" :slant italic :underline t :weight bold))
- (((class color) (background light))
- (:foreground "chartreuse3"))
- (((class color) (background dark))
- (:foreground ,cperl-dark-foreground))
- (t (:weight bold :underline t)))
- "Font Lock mode face used to highlight array names."
- :group 'cperl-faces)
-
- (defface cperl-array-face
- `((((class grayscale) (background light))
- (:background "Gray90" :weight bold))
- (((class grayscale) (background dark))
- (:foreground "Gray80" :weight bold))
- (((class color) (background light))
- (:foreground "Blue" :background "lightyellow2" :weight bold))
- (((class color) (background dark))
- (:foreground "yellow" :background ,cperl-dark-background :weight bold))
- (t (:weight bold)))
- "Font Lock mode face used to highlight array names."
- :group 'cperl-faces)
-
- (defface cperl-hash-face
- `((((class grayscale) (background light))
- (:background "Gray90" :weight bold :slant italic))
- (((class grayscale) (background dark))
- (:foreground "Gray80" :weight bold :slant italic))
- (((class color) (background light))
- (:foreground "Red" :background "lightyellow2" :weight bold :slant italic))
- (((class color) (background dark))
- (:foreground "Red" :background ,cperl-dark-background :weight bold :slant italic))
- (t (:weight bold :slant italic)))
- "Font Lock mode face used to highlight hash names."
- :group 'cperl-faces)))
+(defvar cperl-dark-background
+ (cperl-choose-color "navy" "os2blue" "darkgreen"))
+(defvar cperl-dark-foreground
+ (cperl-choose-color "orchid1" "orange"))
+
+(defface cperl-nonoverridable-face
+ `((((class grayscale) (background light))
+ (:background "Gray90" :slant italic :underline t))
+ (((class grayscale) (background dark))
+ (:foreground "Gray80" :slant italic :underline t :weight bold))
+ (((class color) (background light))
+ (:foreground "chartreuse3"))
+ (((class color) (background dark))
+ (:foreground ,cperl-dark-foreground))
+ (t (:weight bold :underline t)))
+ "Font Lock mode face used to highlight array names."
+ :group 'cperl-faces)
+
+(defface cperl-array-face
+ `((((class grayscale) (background light))
+ (:background "Gray90" :weight bold))
+ (((class grayscale) (background dark))
+ (:foreground "Gray80" :weight bold))
+ (((class color) (background light))
+ (:foreground "Blue" :background "lightyellow2" :weight bold))
+ (((class color) (background dark))
+ (:foreground "yellow" :background ,cperl-dark-background :weight bold))
+ (t (:weight bold)))
+ "Font Lock mode face used to highlight array names."
+ :group 'cperl-faces)
+
+(defface cperl-hash-face
+ `((((class grayscale) (background light))
+ (:background "Gray90" :weight bold :slant italic))
+ (((class grayscale) (background dark))
+ (:foreground "Gray80" :weight bold :slant italic))
+ (((class color) (background light))
+ (:foreground "Red" :background "lightyellow2" :weight bold :slant italic))
+ (((class color) (background dark))
+ (:foreground "Red" :background ,cperl-dark-background :weight bold :slant italic))
+ (t (:weight bold :slant italic)))
+ "Font Lock mode face used to highlight hash names."
+ :group 'cperl-faces)