[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [AUCTeX] setting same color for math scripts as other math

From: Colin Baxter
Subject: Re: [AUCTeX] setting same color for math scripts as other math
Date: Wed, 15 Mar 2017 12:15:31 +0000
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux)


On Wed, Mar 15 2017, Mosè Giordano wrote:

> Hi Tamas,
> 2017-03-15 12:37 GMT+01:00 Tamas Papp <address@hidden>:
>> Hi,
>> I can't see the DarkRed very well and would like math scripts to have
>> the same color as other math in AUCTeX (burlywood in dark themes). How
>> can I achieve this in Emacs Lisp (I could customize, but prefer not to,
>> so that when I switch color themes it adjusts accordingly).
>> Is there some Emacs Lisp magic that would copy colors from one face to
>> another?
> To copy a specific attribute (foreground in this case) you can use
> something like
> (with-eval-after-load "font-latex"
>   (set-face-attribute 'font-latex-script-char-face nil
>               :foreground (face-attribute 'font-latex-math-face
>                           :foreground)))
> or replace the `(face-attribute ...)' with the color you like.
> I don't know if there is something simpler.  You can inherit an entire
> face with `:inherit` attribute, but that doesn't override other
> attributes already set.
> Bye,
> Mosè
> _______________________________________________
> auctex mailing list
> address@hidden

(face-spec-set 'font-latex-script-char-face '((t (:foreground
"some-color"))) nil) also works for me.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]