emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* How to fontify FIXME in tables?
@ 2012-08-27  3:12 François Pinard
  0 siblings, 0 replies; only message in thread
From: François Pinard @ 2012-08-27  3:12 UTC (permalink / raw)
  To: emacs-orgmode

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 '(("\\<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))))
#+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çois

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2012-08-27  3:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-08-27  3:12 How to fontify FIXME in tables? François Pinard

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).