From mboxrd@z Thu Jan 1 00:00:00 1970 From: Samuel Wales Subject: Re: org-agenda-current-time-string partly fontified with emphasis Date: Thu, 7 Sep 2017 16:01:20 -0700 Message-ID: References: <87fubyzmvn.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38227) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dq5nb-00031p-3E for emacs-orgmode@gnu.org; Thu, 07 Sep 2017 19:01:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dq5nW-0000ev-IG for emacs-orgmode@gnu.org; Thu, 07 Sep 2017 19:01:27 -0400 Received: from mail-ua0-x236.google.com ([2607:f8b0:400c:c08::236]:35541) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dq5nW-0000eY-Dw for emacs-orgmode@gnu.org; Thu, 07 Sep 2017 19:01:22 -0400 Received: by mail-ua0-x236.google.com with SMTP id c27so1824056uah.2 for ; Thu, 07 Sep 2017 16:01:22 -0700 (PDT) In-Reply-To: <87fubyzmvn.fsf@nicolasgoaziou.fr> 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: Nicolas Goaziou Cc: emacs-orgmode@gnu.org On 9/7/17, Nicolas Goaziou wrote: > Indeed. === really means "=" character in verbatim markup. fyi but not in all of the agenda current time string. just the first part in my example. > You may be able to tweak fontification to ignore this special case. See > `org-font-lock-set-keywords-hook' to install a special rule for. are there examples of the usage of this? > It will work as long as you don't export the document. For that case, > you could write a filter turning multiple "=" into "\equal". is there a filter that will change instances /before/ they get converted by a backend? depending on the backend sometimes i want === and sometimes a suitable short centered separator. i don't want to use hyphens, and org's separator is page-wide.