Mercurial > emacs
comparison lisp/progmodes/cperl-mode.el @ 42455:7662f312caf2
(various face definitions): Use :weight and :slant.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Mon, 31 Dec 2001 20:43:36 +0000 |
parents | d103d22e5b4f |
children | be541feb06cc |
comparison
equal
deleted
inserted
replaced
42454:0aa467a4e4be | 42455:7662f312caf2 |
---|---|
550 (defvar cperl-dark-foreground | 550 (defvar cperl-dark-foreground |
551 (cperl-choose-color "orchid1" "orange")) | 551 (cperl-choose-color "orchid1" "orange")) |
552 | 552 |
553 (defface cperl-nonoverridable-face | 553 (defface cperl-nonoverridable-face |
554 `((((class grayscale) (background light)) | 554 `((((class grayscale) (background light)) |
555 (:background "Gray90" :italic t :underline t)) | 555 (:background "Gray90" :slant italic :underline t)) |
556 (((class grayscale) (background dark)) | 556 (((class grayscale) (background dark)) |
557 (:foreground "Gray80" :italic t :underline t :bold t)) | 557 (:foreground "Gray80" :slant italic :underline t :weight bold)) |
558 (((class color) (background light)) | 558 (((class color) (background light)) |
559 (:foreground "chartreuse3")) | 559 (:foreground "chartreuse3")) |
560 (((class color) (background dark)) | 560 (((class color) (background dark)) |
561 (:foreground ,cperl-dark-foreground)) | 561 (:foreground ,cperl-dark-foreground)) |
562 (t (:bold t :underline t))) | 562 (t (:weight bold :underline t))) |
563 "Font Lock mode face used to highlight array names." | 563 "Font Lock mode face used to highlight array names." |
564 :group 'cperl-faces) | 564 :group 'cperl-faces) |
565 | 565 |
566 (defface cperl-array-face | 566 (defface cperl-array-face |
567 `((((class grayscale) (background light)) | 567 `((((class grayscale) (background light)) |
568 (:background "Gray90" :bold t)) | 568 (:background "Gray90" :weight bold)) |
569 (((class grayscale) (background dark)) | 569 (((class grayscale) (background dark)) |
570 (:foreground "Gray80" :bold t)) | 570 (:foreground "Gray80" :weight bold)) |
571 (((class color) (background light)) | 571 (((class color) (background light)) |
572 (:foreground "Blue" :background "lightyellow2" :bold t)) | 572 (:foreground "Blue" :background "lightyellow2" :weight bold)) |
573 (((class color) (background dark)) | 573 (((class color) (background dark)) |
574 (:foreground "yellow" :background ,cperl-dark-background :bold t)) | 574 (:foreground "yellow" :background ,cperl-dark-background :weight bold)) |
575 (t (:bold t))) | 575 (t (:weight bold))) |
576 "Font Lock mode face used to highlight array names." | 576 "Font Lock mode face used to highlight array names." |
577 :group 'cperl-faces) | 577 :group 'cperl-faces) |
578 | 578 |
579 (defface cperl-hash-face | 579 (defface cperl-hash-face |
580 `((((class grayscale) (background light)) | 580 `((((class grayscale) (background light)) |
581 (:background "Gray90" :bold t :italic t)) | 581 (:background "Gray90" :weight bold :slant italic)) |
582 (((class grayscale) (background dark)) | 582 (((class grayscale) (background dark)) |
583 (:foreground "Gray80" :bold t :italic t)) | 583 (:foreground "Gray80" :weight bold :slant italic)) |
584 (((class color) (background light)) | 584 (((class color) (background light)) |
585 (:foreground "Red" :background "lightyellow2" :bold t :italic t)) | 585 (:foreground "Red" :background "lightyellow2" :weight bold :slant italic)) |
586 (((class color) (background dark)) | 586 (((class color) (background dark)) |
587 (:foreground "Red" :background ,cperl-dark-background :bold t :italic t)) | 587 (:foreground "Red" :background ,cperl-dark-background :weight bold :slant italic)) |
588 (t (:bold t :italic t))) | 588 (t (:weight bold :slant italic))) |
589 "Font Lock mode face used to highlight hash names." | 589 "Font Lock mode face used to highlight hash names." |
590 :group 'cperl-faces))) | 590 :group 'cperl-faces))) |
591 | 591 |
592 | 592 |
593 | 593 |