From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jon Miller Subject: Re: Changing [X] by something else Date: Sat, 11 Feb 2012 14:18:22 -0500 Message-ID: References: <878vkdfemv.fsf@iro.umontreal.ca> <81r4y1751r.fsf@gmail.com> <8139ahtcd8.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]:44213) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RwIT9-0007R0-75 for emacs-orgmode@gnu.org; Sat, 11 Feb 2012 14:18:48 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RwIT6-0000fC-II for emacs-orgmode@gnu.org; Sat, 11 Feb 2012 14:18:46 -0500 Received: from mail-we0-f169.google.com ([74.125.82.169]:33893) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RwIT6-0000ev-DT for emacs-orgmode@gnu.org; Sat, 11 Feb 2012 14:18:44 -0500 Received: by wera13 with SMTP id a13so3345177wer.0 for ; Sat, 11 Feb 2012 11:18:43 -0800 (PST) In-Reply-To: <8139ahtcd8.fsf@gmail.com> 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: =?ISO-8859-1?Q?Fran=E7ois_Pinard?= , emacs-orgmode@gnu.org 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) "=E2=98=91") nil))) ("\\[ \\]" (0 (progn (compose-region (match-beginning 0) (match-end 0) "=E2=98=90") nil))))) -- Jon Miller 2012/2/11 Jambunathan K : > Jambunathan K writes: > >> pinard@iro.umontreal.ca (Fran=C3=A7ois Pinard) writes: >> >>> 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 bo= th softer >>> and cleaner. >> >> How about a variation of this >> >> #+begin_src emacs-lisp >> =C2=A0 (font-lock-add-keywords >> =C2=A0 =C2=A0'org-mode `(("\\[X\\]" >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (0 (progn (compo= se-region (match-beginning 0) (match-end 0) >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 "") >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 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. > -- >