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

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

Re: backquote quote pair notation: What does it mean in Emacsdocument?


From: Jambunathan K
Subject: Re: backquote quote pair notation: What does it mean in Emacsdocument?
Date: Wed, 19 Dec 2012 00:41:46 +0530
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

Oleksandr Gavenko <gavenkoa@gmail.com> writes:

> On 2012-12-18, Drew Adams wrote:
>
>> Compare the two attached screenshots, for instance.  See how the quoted text
>> stands out more when it is highlighted, and how that can help readability.
>
> How can I add such highlighting for Info buffers in my config?
>
> I think that it is done through some standard configuration...

Drew's may be more elaborate.  


Here is a simple one that I cooked up.  It can be simplified and be made
more elegant though.

    (add-hook 'Info-mode-hook
              (lambda nil
                ;; Add a FIXME face.
                (font-lock-add-keywords
                 nil '(("\\(?:`[^']+'\\)" 0 'font-lock-variable-name-face t)
                       ("\\(?:\"[^\"]*\"\\)" 0 'font-lock-string-face t)))))


> Please share!

-- 



reply via email to

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