From: "François Pinard" <pinard@iro.umontreal.ca>
To: emacs-orgmode@gnu.org
Subject: How to fontify FIXME in tables?
Date: Sun, 26 Aug 2012 23:12:15 -0400 [thread overview]
Message-ID: <863939110w.fsf@mercure.progiciels-bpi.ca> (raw)
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
reply other threads:[~2012-08-27 3:12 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=863939110w.fsf@mercure.progiciels-bpi.ca \
--to=pinard@iro.umontreal.ca \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).