From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jambunathan K Subject: Re: Fontification in Org tables Date: Fri, 28 Dec 2012 23:55:46 +0530 Message-ID: <87r4makp91.fsf@gmail.com> References: <86txr613nh.fsf@iro.umontreal.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]:48343) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ToeZI-0001HT-FI for emacs-orgmode@gnu.org; Fri, 28 Dec 2012 13:22:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ToeZH-0000u3-BX for emacs-orgmode@gnu.org; Fri, 28 Dec 2012 13:22:04 -0500 Received: from mail-pa0-f45.google.com ([209.85.220.45]:61069) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ToeZH-0000ty-5B for emacs-orgmode@gnu.org; Fri, 28 Dec 2012 13:22:03 -0500 Received: by mail-pa0-f45.google.com with SMTP id bg2so6151974pad.18 for ; Fri, 28 Dec 2012 10:22:02 -0800 (PST) In-Reply-To: <86txr613nh.fsf@iro.umontreal.ca> (=?utf-8?Q?=22Fran=C3=A7ois?= Pinard"'s message of "Fri, 28 Dec 2012 12:40:13 -0500") 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 Fran=C3=A7ois Pinard writes: > Hi, Org people. > > Let me report an old problem of mine about missing fontification in Org > tables. In my .emacs file, I have: > > > (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)))) > > > This works nicely in Org file, /except/ within Org tables. Would > someone be kind enough to give me a magical recipe to solve it? :-) 1. Visit Org file C-x C-f file.org RET 2. Turn on Hi-lock mode M-x hi-lock-mode RET 3. Highlight FIXME lines C-x w h FIXME RET 4. Save highlighted regexps right in to the buffer C-x w b=20 ,---- | # Hi-lock: (("FIXME" (0 (quote hi-lock-1) t))) `---- 5. Revisit the Org file C-x C-v file.org 6. Turn on Hi-lock mode M-x hi-lock-mode RET 7. Highlight custom regexps C-x w i > Fran=C3=A7ois > > > > > > --=20