From: Jon Miller <jonebird@gmail.com>
To: Jambunathan K <kjambunathan@gmail.com>
Cc: "François Pinard" <pinard@iro.umontreal.ca>, emacs-orgmode@gnu.org
Subject: Re: Changing [X] by something else
Date: Sat, 11 Feb 2012 14:18:22 -0500 [thread overview]
Message-ID: <CAG7ukFrNYfuJYkT62tEzDpgWOfn9VNLYjsqrMFKHOA-VhwW+bg@mail.gmail.com> (raw)
In-Reply-To: <8139ahtcd8.fsf@gmail.com>
I like the idea... Here is another alternative:
(font-lock-add-keywords
'org-mode `(("\\[X\\]"
(0 (progn (compose-region (match-beginning 0) (match-end 0)
"☑")
nil)))
("\\[ \\]"
(0 (progn (compose-region (match-beginning 0) (match-end 0)
"☐")
nil)))))
-- Jon Miller
2012/2/11 Jambunathan K <kjambunathan@gmail.com>:
> Jambunathan K <kjambunathan@gmail.com> writes:
>
>> pinard@iro.umontreal.ca (François Pinard) writes:
>>
>>> I notice in org.el that [X] is hard-wired, while I would have liked the
>>> possibility of changing it by [✓] in my things, which I find both softer
>>> and cleaner.
>>
>> How about a variation of this
>>
>> #+begin_src emacs-lisp
>> (font-lock-add-keywords
>> 'org-mode `(("\\[X\\]"
>> (0 (progn (compose-region (match-beginning 0) (match-end 0)
>> "")
>> nil)))))
>> #+end_src
>>
>> along the lines of http://www.emacswiki.org/emacs/PrettyLambda
>
> Btw, C-h f org-toggle-pretty-entities does composition and decomposition.
> --
>
next prev parent reply other threads:[~2012-02-11 19:18 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-08 17:04 Changing [X] by something else François Pinard
2012-02-08 17:16 ` suvayu ali
2012-02-08 17:29 ` François Pinard
2012-02-08 17:40 ` suvayu ali
2012-02-09 16:26 ` Nicolas Goaziou
2012-02-09 16:54 ` François Pinard
2012-02-10 13:24 ` Allen S. Rout
2012-02-12 4:06 ` François Pinard
2012-02-10 13:23 ` Allen S. Rout
2012-02-11 9:40 ` Reiner Steib
2012-02-11 15:39 ` Jambunathan K
2012-02-11 19:10 ` Jambunathan K
2012-02-11 19:18 ` Jon Miller [this message]
2012-02-12 2:44 ` François Pinard
2012-02-12 6:19 ` Jambunathan K
2012-02-12 14:12 ` François Pinard
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=CAG7ukFrNYfuJYkT62tEzDpgWOfn9VNLYjsqrMFKHOA-VhwW+bg@mail.gmail.com \
--to=jonebird@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=kjambunathan@gmail.com \
--cc=pinard@iro.umontreal.ca \
/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).