unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* How to add syntax-highlighting to a Help buffer?
@ 2015-07-03  7:59 Raffaele Ricciardi
  2015-07-03  9:20 ` Vaidheeswaran C
                   ` (2 more replies)
  0 siblings, 3 replies; 13+ messages in thread
From: Raffaele Ricciardi @ 2015-07-03  7:59 UTC (permalink / raw)
  To: help-gnu-emacs

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.


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2015-07-04 23:31 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-03  7:59 How to add syntax-highlighting to a Help buffer? Raffaele Ricciardi
2015-07-03  9:20 ` Vaidheeswaran C
2015-07-03 20:09 ` Emanuel Berg
2015-07-03 23:22 ` Michael Heerdegen
2015-07-04 15:09   ` Emanuel Berg
2015-07-04 15:25     ` Michael Heerdegen
2015-07-04 23:24       ` Emanuel Berg
2015-07-04 16:30     ` tomas
2015-07-04 23:25       ` Emanuel Berg
     [not found]     ` <mailman.6316.1436023528.904.help-gnu-emacs@gnu.org>
2015-07-04 17:29       ` Raffaele Ricciardi
2015-07-04 17:43         ` Michael Heerdegen
2015-07-04 23:31         ` Emanuel Berg
     [not found]     ` <mailman.6317.1436027452.904.help-gnu-emacs@gnu.org>
2015-07-04 17:54       ` Stefan Monnier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).