From: pinard@iro.umontreal.ca (François Pinard)
To: Jambunathan K <kjambunathan@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Changing [X] by something else
Date: Sat, 11 Feb 2012 21:44:12 -0500 [thread overview]
Message-ID: <87k43swz2b.fsf@iro.umontreal.ca> (raw)
In-Reply-To: <81r4y1751r.fsf@gmail.com> (Jambunathan K.'s message of "Sat, 11 Feb 2012 21:09:28 +0530")
Jambunathan K <kjambunathan@gmail.com> writes:
> pinard@iro.umontreal.ca (François Pinard) writes:
> along the lines of http://www.emacswiki.org/emacs/PrettyLambda
Thanks for this pointer, which I saved for later study.
>> 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
> (font-lock-add-keywords
> 'org-mode `(("\\[X\\]"
> (0 (progn (compose-region (match-beginning 0) (match-end 0)
> "")
> nil)))))
New concepts for me in this `compose-region'! Handa-san strikes again! :-)
I confess I do not understand much of it. Ctrl-S being turned into a
rectangle is mysterious. Is it the standard way for Emacs to tell about
a non-printable character? The documentation of font-lock-add-keywords
does not hint me at what may be those S-exprs which are not faces.
Moreover, the effect is a bit tiny or shy, at least compared to what I
expected. The suggestions of John Miller yield tiny characters as well.
Presumably, I could try to see if I can force higher font sizes, but
that would be diving deeper into trickery, and away from other problems.
Despite the undoubtedly ingenious suggestion, I guess I'll merely stick
with what Org mode already offers, as it's the best I got so far! :-)
In any case, I'm grateful for your interest, and for sharing ideas.
François
next prev parent reply other threads:[~2012-02-12 2:44 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
2012-02-12 2:44 ` François Pinard [this message]
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=87k43swz2b.fsf@iro.umontreal.ca \
--to=pinard@iro.umontreal.ca \
--cc=emacs-orgmode@gnu.org \
--cc=kjambunathan@gmail.com \
/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).