unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Jambunathan K <kjambunathan@gmail.com>
To: Oleksandr Gavenko <gavenkoa@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: backquote quote pair notation: What does it mean in Emacsdocument?
Date: Wed, 19 Dec 2012 00:41:46 +0530	[thread overview]
Message-ID: <87pq279nv1.fsf@gmail.com> (raw)
In-Reply-To: <87hanj428m.fsf@gavenkoa.example.com> (Oleksandr Gavenko's message of "Tue, 18 Dec 2012 20:57:45 +0200")

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	other threads:[~2012-12-18 19:11 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-12-18 10:56 backquote quote pair notation: What does it mean in Emacs document? ziqianggeoffreychen
2012-12-18 11:49 ` Jambunathan K
2012-12-18 14:40   ` backquote quote pair notation: What does it mean in Emacsdocument? Drew Adams
2012-12-18 15:29     ` Drew Adams
2012-12-18 18:57     ` Oleksandr Gavenko
2012-12-18 19:11       ` Jambunathan K [this message]
2012-12-19  0:40         ` Drew Adams
2012-12-19  0:42           ` Drew Adams
2012-12-19 17:15           ` Request for highlighting back-quote/quote pair notation Oleksandr Gavenko
2012-12-19 17:49             ` Drew Adams
     [not found]             ` <mailman.15693.1355939373.855.help-gnu-emacs@gnu.org>
2012-12-20 13:26               ` Ted Zlatanov
2012-12-19 19:57         ` backquote quote pair notation: What does it mean in Emacsdocument? Oleksandr Gavenko
2012-12-19 20:31           ` Jambunathan K
2012-12-18 15:02   ` backquote quote pair notation: What does it mean in Emacs document? Thien-Thi Nguyen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87pq279nv1.fsf@gmail.com \
    --to=kjambunathan@gmail.com \
    --cc=gavenkoa@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).