Hi,

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

> Hi Tamas,
>
> 2017-03-15 12:37 GMT+01:00 Tamas Papp <tkp...@gmail.com>:
>> 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
> auctex@gnu.org
> https://lists.gnu.org/mailman/listinfo/auctex



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


_______________________________________________
auctex mailing list
auctex@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex

Reply via email to