From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeremie Juste Subject: Re: Fontify text between quotes? Date: Wed, 21 Nov 2018 20:38:24 +0100 Message-ID: <87r2fenrv3.fsf@gmail.com> References: 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]:36545) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gPYKX-0005S7-H5 for emacs-orgmode@gnu.org; Wed, 21 Nov 2018 14:38:34 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gPYKU-0006aK-CX for emacs-orgmode@gnu.org; Wed, 21 Nov 2018 14:38:33 -0500 Received: from mail-wr1-x431.google.com ([2a00:1450:4864:20::431]:37542) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gPYKU-0006Yl-42 for emacs-orgmode@gnu.org; Wed, 21 Nov 2018 14:38:30 -0500 Received: by mail-wr1-x431.google.com with SMTP id j10so6916655wru.4 for ; Wed, 21 Nov 2018 11:38:29 -0800 (PST) In-Reply-To: (Will Pierce's message of "Wed, 21 Nov 2018 11:30:24 -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 Hello, You can in principle tap directly into font lock-mode. For instance something like (add-hook 'org-mode-hook (lambda () (font-lock-add-keywords nil '(("\\<\\(FIXME\\):" 1 'font-lock-warning-face prepend) ("\\<\\(and\\|or\\|not\\)\\>" . 'font-lock-keyword-face))))) would fontify [FIXME:], [and] [or] ,and [not], without the [], in org-mode,= See the doc of font-lock-add-keywords (just stole the code above from it) I could not achieve what you want though. Don't have enough time and energy to think about it now, and I'm very bad with regex. :-). But in principle it should do the job, Hope this helps, Jeremie > Hi all, > > I'd like to add a function that changes the face of any text in quotation > marks. I looked a bit into adapting the existing org code for emphasis, b= ut > got bogged down. I'd like "text like this" to use the org-block face. > > Any help pointing me in the right direction on this would be much > appreciated! > > =E2=80=93W