summaryrefslogtreecommitdiff
path: root/lisp/faces.el
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2016-10-16 18:48:19 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2016-10-16 22:51:51 -0700
commitc06a518b5b0706509252abb03875867b10a92fc7 (patch)
tree06f34f07e642dff4b7c614b55e2fefb96f2c332a /lisp/faces.el
parent032a299b0ed25f067f4133c547a822b283bc4cb8 (diff)
downloademacs-c06a518b5b0706509252abb03875867b10a92fc7.tar.gz
New face homoglyph
Suggested by Eli Zaretskii, from a feature request by Alan Mackenzie (Bug#24468). * doc/emacs/display.texi (Standard Faces, Text Display): * etc/NEWS: Document this. * etc/themes/dichromacy-theme.el, etc/themes/leuven-theme.el: * etc/themes/light-blue-theme.el, etc/themes/manoj-dark-theme.el: * etc/themes/tango-dark-theme.el, etc/themes/tango-theme.el: * etc/themes/wombat-theme.el: Customize homoglyph to be the same as escape-glyph. * lisp/cus-theme.el (custom-theme--listed-faces): Add homoglyph. * lisp/faces.el (homoglyph): New face. * lisp/startup.el (startup--setup-quote-display): Use it.
Diffstat (limited to 'lisp/faces.el')
-rw-r--r--lisp/faces.el8
1 files changed, 8 insertions, 0 deletions
diff --git a/lisp/faces.el b/lisp/faces.el
index 15090e1f94a..d6ec98b9782 100644
--- a/lisp/faces.el
+++ b/lisp/faces.el
@@ -2470,6 +2470,14 @@ If you set `term-file-prefix' to nil, this function does nothing."
:group 'basic-faces
:version "22.1")
+(defface homoglyph
+ '((((background dark)) :foreground "cyan")
+ (((type pc)) :foreground "magenta")
+ (t :foreground "brown"))
+ "Face for lookalike characters."
+ :group 'basic-faces
+ :version "25.2")
+
(defface nobreak-space
'((((class color) (min-colors 88)) :inherit escape-glyph :underline t)
(((class color) (min-colors 8)) :background "magenta")