diff options
| author | Eshel Yaron | 2025-10-13 08:51:21 +0200 |
|---|---|---|
| committer | Eshel Yaron | 2025-10-13 08:51:21 +0200 |
| commit | f2f544c1af139196e21a7711de34e2be8289053c (patch) | |
| tree | 7b20bcdfb6649a5bfe759333af03db73a3e77c48 | |
| parent | 081686423119daac61023b6d059138a1f4fa0b6f (diff) | |
| download | emacs-f2f544c1af139196e21a7711de34e2be8289053c.tar.gz emacs-f2f544c1af139196e21a7711de34e2be8289053c.zip | |
; Improve 'elisp-free/bound-variable' faces.
* lisp/progmodes/elisp-mode.el (elisp-free-variable)
(elisp-bound-variable): Reset the foreground face (to avoid
inheriting it from 'font-lock-variable-use-face') instead of
hardcoding it to "black".
| -rw-r--r-- | lisp/progmodes/elisp-mode.el | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lisp/progmodes/elisp-mode.el b/lisp/progmodes/elisp-mode.el index 979baa8c1fe..c8a894fe3c5 100644 --- a/lisp/progmodes/elisp-mode.el +++ b/lisp/progmodes/elisp-mode.el | |||
| @@ -307,8 +307,8 @@ code analysis." | |||
| 307 | "Face for highlighting the symbol at mouse in Emacs Lisp code.") | 307 | "Face for highlighting the symbol at mouse in Emacs Lisp code.") |
| 308 | 308 | ||
| 309 | (defface elisp-free-variable | 309 | (defface elisp-free-variable |
| 310 | '((t :underline t :foreground "black" :inherit font-lock-variable-use-face)) | 310 | '((t :underline t :foreground reset :inherit font-lock-variable-use-face)) |
| 311 | "Face for highlighting free variables in Emacs Lisp code.") | 311 | "Face for highlighting free (special) variables in Emacs Lisp code.") |
| 312 | 312 | ||
| 313 | (defface elisp-special-variable-declaration '((t :inherit elisp-free-variable)) | 313 | (defface elisp-special-variable-declaration '((t :inherit elisp-free-variable)) |
| 314 | "Face for highlighting free variable declarations in Emacs Lisp code.") | 314 | "Face for highlighting free variable declarations in Emacs Lisp code.") |
| @@ -360,7 +360,7 @@ code analysis." | |||
| 360 | "Face for highlighting binding occurrences of variables in Emacs Lisp code.") | 360 | "Face for highlighting binding occurrences of variables in Emacs Lisp code.") |
| 361 | 361 | ||
| 362 | (defface elisp-bound-variable | 362 | (defface elisp-bound-variable |
| 363 | '((t :slant italic :foreground "black" :inherit font-lock-variable-use-face)) | 363 | '((t :slant italic :foreground reset :inherit font-lock-variable-use-face)) |
| 364 | "Face for highlighting bound occurrences of variables in Emacs Lisp code.") | 364 | "Face for highlighting bound occurrences of variables in Emacs Lisp code.") |
| 365 | 365 | ||
| 366 | (defface elisp-shadowing-variable | 366 | (defface elisp-shadowing-variable |