[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: typeface for keyword
From: |
Emanuel Berg |
Subject: |
Re: typeface for keyword |
Date: |
Mon, 15 Feb 2021 16:55:44 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
steve-humphreys wrote:
> I am using the following typeface, but want to change so
> that the face is the same as the typeface for keywords used
> in the major mode that is loaded after opening the file
> (e.g. texinfo, tex).
>
> (defface tfcdye
> '( (default :inherit bold)
> ( ((class color) (min-colors 88) (background light))
> :foreground "#FF0000" )
> ( ((class color) (min-colors 88) (background dark))
> :foreground "#FF0000" )
> (t :inherit font-lock-builtin-face) )
> "Colour typeface for tex commands.")
It is easier to do it the other way around.
First find out what face you want to change.
Move point to the place where you see the face. Then use use
this function:
(defun what-face (pos)
(interactive "d")
(let ((face (or (get-char-property pos 'face)
(get-char-property pos 'read-cf-name) )))
(message "face: %s" (or face "no face")) ))
After that, set the face to whatever you like.
https://dataswamp.org/~incal/emacs-init/face.el
--
underground experts united
http://user.it.uu.se/~embe8573
https://dataswamp.org/~incal
- typeface for keyword, steve-humphreys, 2021/02/14
- Re: typeface for keyword,
Emanuel Berg <=
- Re: typeface for keyword, steve-humphreys, 2021/02/15
- Re: typeface for keyword, tomas, 2021/02/15
- Re: typeface for keyword, Emanuel Berg, 2021/02/15
- Re: typeface for keyword, steve-humphreys, 2021/02/15
- Re: typeface for keyword, steve-humphreys, 2021/02/15
- Re: typeface for keyword, steve-humphreys, 2021/02/15