From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alex Helfet Subject: Highlighting list item bullets Date: Fri, 14 Sep 2018 10:43:30 +0100 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000a9a8c60575d1a894" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49573) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g0kdc-0005XF-Lp for emacs-orgmode@gnu.org; Fri, 14 Sep 2018 05:43:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g0kdb-0000He-Sf for emacs-orgmode@gnu.org; Fri, 14 Sep 2018 05:43:44 -0400 Received: from mail-wr1-x42a.google.com ([2a00:1450:4864:20::42a]:33132) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1g0kdb-0000GD-KM for emacs-orgmode@gnu.org; Fri, 14 Sep 2018 05:43:43 -0400 Received: by mail-wr1-x42a.google.com with SMTP id v90-v6so9822865wrc.0 for ; Fri, 14 Sep 2018 02:43:43 -0700 (PDT) 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: emacs-orgmode@gnu.org --000000000000a9a8c60575d1a894 Content-Type: text/plain; charset="UTF-8" I wanted syntax highlighting for list item bullets (e.g. '-') in my org mode setup. I have a very early prototype working and wanted some feedback about whether you would be interested in this feature upstream, or perhaps including it in a package would be a better bet. The code is in a github gist: https://gist.github.com/fluffysquirrels/1aaec7cab234893bfd46cdad721dda85 The code is rough but very short and readable. I have some test cases working, with a screenshot of how they look on my machine. Thanks! Alex --000000000000a9a8c60575d1a894 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I wanted syntax highlighting for list ite= m bullets (e.g. '-') in my org mode setup.

I have a very ear= ly prototype working and wanted some feedback about whether you would be in= terested in this feature upstream, or perhaps including it in a package wou= ld be a better bet.

The code is in a github gist: https://= gist.github.com/fluffysquirrels/1aaec7cab234893bfd46cdad721dda85
The code is rough but very short and readable. I have some test cases work= ing, with a screenshot of how they look on my machine.

Thanks!
Alex
--000000000000a9a8c60575d1a894-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Grant Rettke Subject: Re: Highlighting list item bullets Date: Tue, 18 Sep 2018 10:40:41 -0500 Message-ID: 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]:41702) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g2I7v-0006xq-5H for emacs-orgmode@gnu.org; Tue, 18 Sep 2018 11:41:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g2I7r-0005EO-He for emacs-orgmode@gnu.org; Tue, 18 Sep 2018 11:41:23 -0400 Received: from mail-lf1-f51.google.com ([209.85.167.51]:33605) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1g2I7o-00054U-6y for emacs-orgmode@gnu.org; Tue, 18 Sep 2018 11:41:18 -0400 Received: by mail-lf1-f51.google.com with SMTP id m26-v6so2292758lfb.0 for ; Tue, 18 Sep 2018 08:41:08 -0700 (PDT) In-Reply-To: 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: alex.helfet@googlemail.com Cc: Org-mode On Tue, Sep 18, 2018 at 8:25 AM Alex Helfet wr= ote: > I have a very early prototype working and wanted some feedback about whet= her you would be interested in this feature upstream, or perhaps > including it in a package would be a better bet. That looks great. There are already more than a few snippets out there to do something like that that but they all probably do it differently. For example mine just because I wanted em-dashes (font-lock-add-keywords 'org-mode '(("^[[:space:]]*\\(-\\) " 0 (prog1 () (compose-region (match-beginning 1) (match-end 1) "=E2=80= =94"))))) So you've got my vote for putting it in a package: