aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEshel Yaron2025-10-15 12:21:19 +0200
committerEshel Yaron2025-10-15 12:24:59 +0200
commiteeaa9421479de0ceefbbb90a7b7bd750c3e00f4b (patch)
treea34ae489c5714c91ff30c38708e43b45efce5f3e
parent53fa2b72183e110cc6da3ce172c48e40d3fea3c7 (diff)
downloademacs-eeaa9421479de0ceefbbb90a7b7bd750c3e00f4b.tar.gz
emacs-eeaa9421479de0ceefbbb90a7b7bd750c3e00f4b.zip
; Refine a few 'elisp-*' faces for dark backgrounds
* lisp/progmodes/elisp-mode.el (elisp-major-mode-name) (elisp-symbol-role, elisp-symbol-role-definition, elisp-rx): Use a lighter foreground color when background color is dark to improve legibility.
-rw-r--r--lisp/progmodes/elisp-mode.el18
1 files changed, 14 insertions, 4 deletions
diff --git a/lisp/progmodes/elisp-mode.el b/lisp/progmodes/elisp-mode.el
index 87c7a53b057..af7c8b96555 100644
--- a/lisp/progmodes/elisp-mode.el
+++ b/lisp/progmodes/elisp-mode.el
@@ -321,18 +321,26 @@ code analysis."
321 "Face for highlighting `condition-case' conditions in Emacs Lisp code." 321 "Face for highlighting `condition-case' conditions in Emacs Lisp code."
322 :version "31.1") 322 :version "31.1")
323 323
324(defface elisp-major-mode-name '((t :foreground "#006400")) 324(defface elisp-major-mode-name
325 '((((background light)) :foreground "#006400")
326 (((background dark)) :foreground "#4ade80"))
325 "Face for highlighting major mode names in Emacs Lisp code.") 327 "Face for highlighting major mode names in Emacs Lisp code.")
326 328
327(defface elisp-face '((t :inherit font-lock-type-face)) 329(defface elisp-face '((t :inherit font-lock-type-face))
328 "Face for highlighting face names in Emacs Lisp code." 330 "Face for highlighting face names in Emacs Lisp code."
329 :version "31.1") 331 :version "31.1")
330 332
331(defface elisp-symbol-role '((t :foreground "#00008b" :inherit font-lock-function-call-face)) 333(defface elisp-symbol-role
334 '((default :inherit font-lock-function-call-face)
335 (((background light)) :foreground "#00008b")
336 (((background dark)) :foreground "#5c9cff"))
332 "Face for highlighting symbol role names in Emacs Lisp code." 337 "Face for highlighting symbol role names in Emacs Lisp code."
333 :version "31.1") 338 :version "31.1")
334 339
335(defface elisp-symbol-role-definition '((t :foreground "#00008b" :inherit font-lock-function-name-face)) 340(defface elisp-symbol-role-definition
341 '((default :inherit font-lock-function-name-face)
342 (((background light)) :foreground "#00008b")
343 (((background dark)) :foreground "#5c9cff"))
336 "Face for highlighting symbol role definitions in Emacs Lisp code." 344 "Face for highlighting symbol role definitions in Emacs Lisp code."
337 :version "31.1") 345 :version "31.1")
338 346
@@ -367,7 +375,9 @@ code analysis."
367 "Face for highlighting feature names in Emacs Lisp code." 375 "Face for highlighting feature names in Emacs Lisp code."
368 :version "31.1") 376 :version "31.1")
369 377
370(defface elisp-rx '((t :foreground "#00008b")) 378(defface elisp-rx
379 '((((background light)) :foreground "#00008b")
380 (((background dark)) :foreground "#5c9cff"))
371 "Face for highlighting `rx' constructs in Emacs Lisp code." 381 "Face for highlighting `rx' constructs in Emacs Lisp code."
372 :version "31.1") 382 :version "31.1")
373 383