[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
How to add syntax-highlighting to a Help buffer?
From: |
Raffaele Ricciardi |
Subject: |
How to add syntax-highlighting to a Help buffer? |
Date: |
Fri, 3 Jul 2015 09:59:23 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.0.1 |
I would like to add some syntax-highlighting to Help buffers. I have
tried to do that for example with the Help buffer displayed by C-h f
read-string RET, by following the usual way:
(font-lock-add-keywords
nil
`(("\\(arbitrary regexp\\)" 1 'font-lock-function-name-face)))
But the above expression breaks the existing highlighting (the
highlighting of the function arguments disappears). Also, now C-- C-x
C-q M-: (insert (propertize "test" 'face 'font-lock-warning-face)) RET
does not insert colorized text as it would do with a fresh Help buffer.
I am using GNU Emacs 24.5.
Thank you.
- How to add syntax-highlighting to a Help buffer?,
Raffaele Ricciardi <=
- Re: How to add syntax-highlighting to a Help buffer?, Vaidheeswaran C, 2015/07/03
- Re: How to add syntax-highlighting to a Help buffer?, Emanuel Berg, 2015/07/03
- Re: How to add syntax-highlighting to a Help buffer?, Michael Heerdegen, 2015/07/03
- Message not available
- Re: How to add syntax-highlighting to a Help buffer?, Raffaele Ricciardi, 2015/07/04
- Re: How to add syntax-highlighting to a Help buffer?, Michael Heerdegen, 2015/07/04