From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jambunathan K Subject: Re: Changing [X] by something else Date: Sun, 12 Feb 2012 00:40:27 +0530 Message-ID: <8139ahtcd8.fsf@gmail.com> 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]:42409) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RwILK-0005dp-UX for emacs-orgmode@gnu.org; Sat, 11 Feb 2012 14:10:43 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RwILJ-0008D3-Ei for emacs-orgmode@gnu.org; Sat, 11 Feb 2012 14:10:42 -0500 Received: from mail-pz0-f41.google.com ([209.85.210.41]:41225) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RwILJ-0008Cz-5R for emacs-orgmode@gnu.org; Sat, 11 Feb 2012 14:10:41 -0500 Received: by dadv6 with SMTP id v6so3478157dad.0 for ; Sat, 11 Feb 2012 11:10:40 -0800 (PST) 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: =?utf-8?Q?Fran=C3=A7ois?= Pinard Cc: emacs-orgmode@gnu.org 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 bot= h 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. --=20