From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?Fran=C3=A7ois_Pinard?= Subject: How to fontify FIXME in tables? Date: Sun, 26 Aug 2012 23:12:15 -0400 Message-ID: <863939110w.fsf@mercure.progiciels-bpi.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:39953) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T5pkR-00066x-0L for emacs-orgmode@gnu.org; Sun, 26 Aug 2012 23:12:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T5pkO-0007dv-TJ for emacs-orgmode@gnu.org; Sun, 26 Aug 2012 23:12:18 -0400 Received: from 206-248-137-202.dsl.teksavvy.com ([206.248.137.202]:62360 helo=mercure.progiciels-bpi.ca) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T5pkO-0007db-Nd for emacs-orgmode@gnu.org; Sun, 26 Aug 2012 23:12:16 -0400 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: emacs-orgmode@gnu.org Hi, Org people. I just refreshed Org mode from Git today, and as usual, it was fairly easy. From the announcement, tons of work accumulated, and I wanted to take advantage of them! It's fun putting oneself in a position to lazily discover new possibilities over something which is already highly satisfactory! :-) But this message is more to ask for advice over a cosmetic tiny detail, really. I have the habit of fontifying "FIXME" in a special way a bit everywhere in Emacs. I use this code: #+BEGIN_SRC elisp (defun fp-fontify-fixme () (font-lock-add-keywords nil '(("\\" 0 font-lock-warning-face t)))) (let ((hooks '(c-mode-common-hook change-log-mode-hook cperl-mode-hook css-mode-hook emacs-lisp-mode-hook html-mode-hook latex-mode-hook lisp-mode-hook makefile-mode-hook message-mode-hook org-mode-hook php-mode-hook python-mode-hook sh-mode-hook shell-mode-hook ssh-config-mode-hook))) (while hooks (add-hook (car hooks) 'fp-fontify-fixme) (setq hooks (cdr hooks)))) #+END_SRC "FIXME" words are fontified as I want by Org, except within tables. What would be the proper Emacs Lisp incantation to adjust this? Fran=C3=A7ois