Commits

Anonymous committed 7f616fc

Define faces regardless of window-system <871y3hj3hq.fsf@unix.home>.

Comments (0)

Files changed (2)

+2003-01-13  Vasily Korytov  <deskpot@myrealbox.com>
+
+	* cperl-mode.el: Define `cperl-dark-background',
+	`cperl-dark-foreground', `cperl-nonoverridable-face',
+	`cperl-array-face' and `cperl-hash-face' on tty as well.
+
 2003-01-13  Rendhalver [Peter Brown]  <rendhalver@xemacs.org>
 
 	* Makefile (VERSION): XEmacs package 1.03 released.
 				   (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" :italic t :underline t))
-	    (((class grayscale) (background dark))
-	     (:foreground "Gray80" :italic t :underline t :bold t))
-	    (((class color) (background light))
-	     (:foreground "chartreuse3"))
-	    (((class color) (background dark))
-	     (:foreground (, cperl-dark-foreground)))
-	    (t (:bold t :underline t))))
-	"Font Lock mode face used to highlight array names."
-	:group 'cperl-faces)
-
-      (defface cperl-array-face
-	(` ((((class grayscale) (background light))
-	     (:background "Gray90" :bold t))
-	    (((class grayscale) (background dark))
-	     (:foreground "Gray80" :bold t))
-	    (((class color) (background light))
-	     (:foreground "Blue" :bold t))
-	    (((class color) (background dark))
-	     (:foreground "yellow" :background (, cperl-dark-background) :bold t))
-	    (t (:bold t))))
-	"Font Lock mode face used to highlight array names."
-	:group 'cperl-faces)
-
-      (defface cperl-hash-face
-	(` ((((class grayscale) (background light))
-	     (:background "Gray90" :bold t :italic t))
-	    (((class grayscale) (background dark))
-	     (:foreground "Gray80" :bold t :italic t))
-	    (((class color) (background light))
-	     (:foreground "Red" :bold t :italic t))
-	    (((class color) (background dark))
-	     (:foreground "Red" :background (, cperl-dark-background) :bold t :italic t))
-	    (t (:bold t :italic t))))
-	"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" :italic t :underline t))
+      (((class grayscale) (background dark))
+       (:foreground "Gray80" :italic t :underline t :bold t))
+      (((class color) (background light))
+       (:foreground "chartreuse3"))
+      (((class color) (background dark))
+       (:foreground (, cperl-dark-foreground)))
+      (t (:bold t :underline t))))
+  "Font Lock mode face used to highlight array names."
+  :group 'cperl-faces)
+
+(defface cperl-array-face
+  (` ((((class grayscale) (background light))
+       (:background "Gray90" :bold t))
+      (((class grayscale) (background dark))
+       (:foreground "Gray80" :bold t))
+      (((class color) (background light))
+       (:foreground "Blue" :bold t))
+      (((class color) (background dark))
+       (:foreground "yellow" :background (, cperl-dark-background) :bold t))
+      (t (:bold t))))
+  "Font Lock mode face used to highlight array names."
+:group 'cperl-faces)
+
+(defface cperl-hash-face
+  (` ((((class grayscale) (background light))
+       (:background "Gray90" :bold t :italic t))
+      (((class grayscale) (background dark))
+       (:foreground "Gray80" :bold t :italic t))
+      (((class color) (background light))
+       (:foreground "Red" :bold t :italic t))
+      (((class color) (background dark))
+       (:foreground "Red" :background (, cperl-dark-background) :bold t :italic t))
+      (t (:bold t :italic t))))
+  "Font Lock mode face used to highlight hash names."
+  :group 'cperl-faces)