emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: E Sabof <esabof@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Fwd: org-bullets extension
Date: Sun, 16 Dec 2012 01:37:52 +0000	[thread overview]
Message-ID: <CAEp6Dyb+Z8UXbHFfBe=KqWoO8VZmvMWYH7Tzc-OEjQkCXgwV2Q@mail.gmail.com> (raw)
In-Reply-To: <CAEp6Dybepdf_-6qC9mPDyYhat9DqXht=HCb4NuihS1rmNd7JQA@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1249 bytes --]

* Currently the bullets get painted with background color on occasion.
* Overlays are easy to turn on/off. Same might be true for font-lock, I
just haven't figured out a way.
* Org-bullets conflict with overlay-heavy modes (ex. org-columns). This
probably won't be the case with font-lock.
* An important point is that in my version every character in text
translates to a single character on display. Which makes it easier to work
with headlines.

In any case, I'm open to the possibility that this approach might lead to a
better/shorter solution.

On Sat, Dec 15, 2012 at 9:10 AM, Jambunathan K <kjambunathan@gmail.com>wrote:

> I think what the package does can be achieved by the following snippet
> or with minor tweaks to it.  Is my understanding correct?
>
>     (font-lock-add-keywords
>      'org-mode `(("\\(?:^\\(?1:\\*+\\)[[:blank:]]\\)"
>                   (0 (progn (compose-region
>                              (match-beginning 1) (match-end 1)
>                              (pcase (length (match-string 1))
>                                (1 ?\u2219)
>                                (2 ?\u2022)
>                                (3 ?\u25c9)
>                                (_ ?\u25CB)))
>                             nil)))))
>

[-- Attachment #2: Type: text/html, Size: 1854 bytes --]

  parent reply	other threads:[~2012-12-16  1:37 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-12-12 17:16 org-bullets extension E Sabof
2012-12-12 23:48 ` Bastien
2012-12-15  9:10 ` Jambunathan K
     [not found]   ` <CAEp6Dybepdf_-6qC9mPDyYhat9DqXht=HCb4NuihS1rmNd7JQA@mail.gmail.com>
2012-12-16  1:37     ` E Sabof [this message]
2012-12-18 11:05   ` Bastien
2013-01-28  0:41     ` E Sabof
2013-02-11 17:38       ` Bastien
2013-02-12  2:38         ` François Pinard
2013-02-12  4:36           ` François Pinard
2013-02-12  4:45             ` Jambunathan K
2013-02-13  7:40         ` E Sabof
2013-02-20 22:58           ` E Sabof
2013-02-21 17:58             ` François Pinard
2013-02-23  9:31             ` Bastien
2013-02-23  9:39       ` Bastien

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAEp6Dyb+Z8UXbHFfBe=KqWoO8VZmvMWYH7Tzc-OEjQkCXgwV2Q@mail.gmail.com' \
    --to=esabof@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).