From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: Fontify text between quotes? Date: Thu, 22 Nov 2018 06:44:05 +0000 Message-ID: <87muq14nnu.fsf@gmail.com> References: <87r2fenrv3.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54609) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gPiir-0007dF-73 for emacs-orgmode@gnu.org; Thu, 22 Nov 2018 01:44:21 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gPiil-0005mF-Py for emacs-orgmode@gnu.org; Thu, 22 Nov 2018 01:44:21 -0500 Received: from mail-wm1-x32e.google.com ([2a00:1450:4864:20::32e]:40203) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gPiih-0005cN-5Q for emacs-orgmode@gnu.org; Thu, 22 Nov 2018 01:44:13 -0500 Received: by mail-wm1-x32e.google.com with SMTP id q26so7896392wmf.5 for ; Wed, 21 Nov 2018 22:44:08 -0800 (PST) In-Reply-To: (Will Pierce's message of "Wed, 21 Nov 2018 14:50:37 -0600") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Will Pierce Cc: emacs-orgmode@gnu.org On Wednesday, 21 Nov 2018 at 14:50, Will Pierce wrote: > Ahah! Thanks for the tip! > > Added the following to my init: > > ;; use org-block face in verse/quote blocks > (setq org-fontify-quote-and-verse-blocks t) > > ;; use org-block for smart-quoted text > (defun my-org-smart-quote-fontify () > "Use org-block face for text between smart quotes." > (font-lock-add-keywords nil > '(("=E2=80=9C\\(.*?\\)=E2=80=9D" . 'org-block))= )) You might want to replace the .* with [^"]* to avoid cases where you have two or more quoted bits of text in a single line leading to fontification of all the text between the first " and the last ". (untested) --=20 Eric S Fraga via Emacs 27.0.50, Org release_9.1.14-1035-gfeb442