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 --8<---------------cut here---------------start------------->8--- (with-eval-after-load "font-latex" (set-face-attribute 'font-latex-script-char-face nil :foreground (face-attribute 'font-latex-math-face :foreground))) --8<---------------cut here---------------end--------------->8--- 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