From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.help Subject: RE: backquote quote pair notation: What does it mean in Emacsdocument? Date: Tue, 18 Dec 2012 16:40:13 -0800 Message-ID: References: <878v8v8tsd.fsf@gmail.com><855E7E03363249B6874C759B0A496ACF@us.oracle.com><87hanj428m.fsf@gavenkoa.example.com> <87pq279nv1.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1355877633 29657 80.91.229.3 (19 Dec 2012 00:40:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 19 Dec 2012 00:40:33 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: "'Jambunathan K'" , "'Oleksandr Gavenko'" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Dec 19 01:40:47 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Tl7iH-0004C1-Gt for geh-help-gnu-emacs@m.gmane.org; Wed, 19 Dec 2012 01:40:45 +0100 Original-Received: from localhost ([::1]:49910 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tl7i4-0005Ni-1R for geh-help-gnu-emacs@m.gmane.org; Tue, 18 Dec 2012 19:40:32 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:38211) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tl7hw-0005NR-S5 for help-gnu-emacs@gnu.org; Tue, 18 Dec 2012 19:40:26 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Tl7hv-0001xN-A1 for help-gnu-emacs@gnu.org; Tue, 18 Dec 2012 19:40:24 -0500 Original-Received: from aserp1040.oracle.com ([141.146.126.69]:41965) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tl7hv-0001xC-2x for help-gnu-emacs@gnu.org; Tue, 18 Dec 2012 19:40:23 -0500 Original-Received: from acsinet22.oracle.com (acsinet22.oracle.com [141.146.126.238]) by aserp1040.oracle.com (Sentrion-MTA-4.2.2/Sentrion-MTA-4.2.2) with ESMTP id qBJ0eJjr008407 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 19 Dec 2012 00:40:20 GMT Original-Received: from acsmt357.oracle.com (acsmt357.oracle.com [141.146.40.157]) by acsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id qBJ0eJOS029158 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 19 Dec 2012 00:40:19 GMT Original-Received: from abhmt111.oracle.com (abhmt111.oracle.com [141.146.116.63]) by acsmt357.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id qBJ0eIKg009872; Tue, 18 Dec 2012 18:40:18 -0600 Original-Received: from dradamslap1 (/10.159.173.243) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Tue, 18 Dec 2012 16:40:18 -0800 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <87pq279nv1.fsf@gmail.com> Thread-Index: Ac3dUxK8xqGMse8MRcCMbTcTWmQT5AALU6Fg X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 X-Source-IP: acsinet22.oracle.com [141.146.126.238] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 141.146.126.69 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:88208 Archived-At: > >> 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... > > Please share! > > 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))))) No, there is no standard configuration that does this. I offered it to Emacs Dev several times starting a long time ago (and it is still offered), but there has never been insufficient interest. But you can get it here - just load library `info+.el'. It should work with GNU Emacs versions 20 through 24. A few of the features, such as breadcrumbs, have been added to Emacs, but not the highlighting. overview: http://www.emacswiki.org/cgi-bin/wiki/InfoPlus code: http://www.emacswiki.org/emacs-en/download/info%2b.el