help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: define-minor-mode: what's the purpose of the BODY argument?


From: Drew Adams
Subject: RE: define-minor-mode: what's the purpose of the BODY argument?
Date: Fri, 24 Aug 2012 15:24:24 -0700

FYI - Info+ fontifies entries for reference items (functions, macros, commands,
special forms, constants, options, other variables), and that includes their
parameters, even those on continuation lines.

http://www.emacswiki.org/emacs/InfoPlus

> I've written a snippet of code to highlight arguments in Info
> mode, too, and I'm attaching it.  Arguments are empirically
> identified as symbols of two or more uppercase
> letters, digits or dashes, starting with a letter.
> 
> (defun rr-Info-mode-highlight-argument-names ()
>    "Highlight argument names as they are highlighted in Help mode."
>    (font-lock-add-keywords nil
>                            '(("\\_<[A-Z][-A-Z[:digit:]]+\\_>"
>                               . font-lock-comment-face))))
> (add-hook 'Info-mode-hook #'rr-Info-mode-highlight-argument-names)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]