emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Fontification in Org tables


From: Jambunathan K
Subject: Re: [O] Fontification in Org tables
Date: Fri, 28 Dec 2012 23:55:46 +0530
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

François Pinard <address@hidden> 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 '(("\\<FIXME\\>" 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 

        ,----
        | # 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çois
>
>
>
>
>
>

-- 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]