branch: externals/ef-themes commit dcea520ae0a2452e1a5f2630b3d6515f9cb9d939 Author: Protesilaos Stavrou <i...@protesilaos.com> Commit: Protesilaos Stavrou <i...@protesilaos.com>
Add support for auctex Thanks to Philip Kaludercic for providing the sample file that let me view the relevant faces: <https://lists.sr.ht/~protesilaos/ef-themes/%3C87h71t97hl.fsf%40posteo.net%3E>. --- README.org | 3 +-- ef-themes.el | 22 ++++++++++++++++++++++ 2 files changed, 23 insertions(+), 2 deletions(-) diff --git a/README.org b/README.org index a424ab979f..21a9aa93ce 100644 --- a/README.org +++ b/README.org @@ -771,6 +771,7 @@ everything most users need. - all-the-icons-dired - all-the-icons-ibuffer - ansi-color +- auctex [ Part of {{{development-version}}} ] - bongo - bookmark - calendar and diary @@ -877,8 +878,6 @@ design of the =ef-themes=, (ii) complexity or multiple points of entry, opinion, or (v) inconsiderate use of color out-of-the-box and implicit unwillingness to be good Emacs citizens: -- auctex :: it has a zillion dependencies; I don't know LaTeX. - - avy :: its UI is prone to visual breakage and is hard to style correctly. diff --git a/ef-themes.el b/ef-themes.el index 377935c424..edbe8e11c4 100644 --- a/ef-themes.el +++ b/ef-themes.el @@ -615,6 +615,28 @@ Helper function for `ef-themes-preview-colors'." `(ansi-color-red ((,c :background ,red :foreground ,red))) `(ansi-color-white ((,c :background "gray65" :foreground "gray65"))) `(ansi-color-yellow ((,c :background ,yellow :foreground ,yellow))) +;;;; auctex and tex + `(font-latex-bold-face ((,c :inherit bold))) + `(font-latex-doctex-documentation-face ((,c :inherit font-lock-doc-face))) + `(font-latex-doctex-preprocessor-face ((,c :inherit font-lock-preprocessor-face))) + `(font-latex-italic-face ((,c :inherit italic))) + `(font-latex-math-face ((,c :inherit font-lock-constant-face))) + `(font-latex-script-char-face ((,c :inherit font-lock-builtin-face))) + `(font-latex-sectioning-5-face ((,c :inherit (bold ef-themes-variable-pitch) :foreground ,fg-alt))) + `(font-latex-sedate-face ((,c :inherit font-lock-keyword-face))) + `(font-latex-slide-title-face ((,c :inherit modus-themes-heading-1))) + `(font-latex-string-face ((,c :inherit font-lock-string-face))) + `(font-latex-subscript-face ((,c :height 0.95))) + `(font-latex-superscript-face ((,c :height 0.95))) + `(font-latex-underline-face ((,c :inherit underline))) + `(font-latex-verbatim-face ((,c :inherit modus-themes-markup-verbatim))) + `(font-latex-warning-face ((,c :inherit font-lock-warning-face))) + `(tex-verbatim ((,c :inherit ef-themes-fixed-pitch :foreground ,accent-0))) + ;; `(texinfo-heading ((,c :foreground ,magenta))) + `(TeX-error-description-error ((,c :inherit error))) + `(TeX-error-description-help ((,c :inherit success))) + `(TeX-error-description-tex-said ((,c :inherit success))) + `(TeX-error-description-warning ((,c :inherit warning))) ;;;; bongo `(bongo-album-title (( ))) `(bongo-artist ((,c :foreground ,rainbow-0)))