From mboxrd@z Thu Jan 1 00:00:00 1970 From: pinard@iro.umontreal.ca (=?utf-8?Q?Fran=C3=A7ois?= Pinard) Subject: Re: Changing [X] by something else Date: Sat, 11 Feb 2012 21:44:12 -0500 Message-ID: <87k43swz2b.fsf@iro.umontreal.ca> References: <878vkdfemv.fsf@iro.umontreal.ca> <81r4y1751r.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([140.186.70.92]:33778) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RwPQH-00081r-OD for emacs-orgmode@gnu.org; Sat, 11 Feb 2012 21:44:21 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RwPQD-0000vp-PG for emacs-orgmode@gnu.org; Sat, 11 Feb 2012 21:44:17 -0500 Received: from 206-248-137-202.dsl.teksavvy.com ([206.248.137.202]:54697 helo=mercure.epsilon-ti.ca) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RwPQD-0000vl-LI for emacs-orgmode@gnu.org; Sat, 11 Feb 2012 21:44:13 -0500 In-Reply-To: <81r4y1751r.fsf@gmail.com> (Jambunathan K.'s message of "Sat, 11 Feb 2012 21:09:28 +0530") 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Jambunathan K Cc: emacs-orgmode@gnu.org Jambunathan K writes: > pinard@iro.umontreal.ca (Fran=C3=A7ois 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 [=E2=9C=93] in my things, which I find bot= h 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=C3=A7ois