diff options
author | Dan Nicolaescu <dann@ics.uci.edu> | 2011-07-13 17:33:08 +0200 |
---|---|---|
committer | Lars Magne Ingebrigtsen <larsi@gnus.org> | 2011-07-13 17:33:08 +0200 |
commit | bf6012e5b1ec29b02dbb2f6b000471ca418055dc (patch) | |
tree | c970b9aceaec634d1f333b65a25828a98274645f /lisp/font-lock.el | |
parent | 7e9505c5eb2fdaef0b85ea64ee9954e8e51dd05a (diff) | |
download | emacs-bf6012e5b1ec29b02dbb2f6b000471ca418055dc.tar.gz |
Use "yellow" on low color terminals for comments
* font-lock.el (font-lock-comment-face): Use the high contrast
"yellow" color for font-lock-comment-face on low color terminals
using a dark background color.
Fixes: debbugs:4221
Diffstat (limited to 'lisp/font-lock.el')
-rw-r--r-- | lisp/font-lock.el | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/lisp/font-lock.el b/lisp/font-lock.el index 3743dd54b7a..6c76142c59d 100644 --- a/lisp/font-lock.el +++ b/lisp/font-lock.el @@ -1856,19 +1856,13 @@ Sets various variables using `font-lock-defaults' and (((class color) (min-colors 8) (background light)) (:foreground "red")) (((class color) (min-colors 8) (background dark)) - ) + (:foreground "yellow")) (t (:weight bold :slant italic))) "Font Lock mode face used to highlight comments." :group 'font-lock-faces) (defface font-lock-comment-delimiter-face - '((default :inherit font-lock-comment-face) - (((class grayscale))) - (((class color) (min-colors 16))) - (((class color) (min-colors 8) (background light)) - :foreground "red") - (((class color) (min-colors 8) (background dark)) - :foreground "red1")) + '((default :inherit font-lock-comment-face)) "Font Lock mode face used to highlight comment delimiters." :group 'font-lock-faces) |