Gnus development mailing list
 help / color / mirror / Atom feed
From: Ted Zlatanov <tzz@lifelogs.com>
Subject: message mode loses highlighting
Date: Wed, 25 Jun 2003 11:40:00 -0400	[thread overview]
Message-ID: <4n3chyi2sv.fsf@lockgroove.bwh.harvard.edu> (raw)

I have the following in my .emacs:

(defface font-lock-empty-line-face
  '((t (:height 80 :inherit default)))
  "Font Lock mode face used for blank lines."
  :group 'font-lock-highlighting-faces)

(defvar font-lock-empty-line 'font-lock-empty-line-face
  "Face name to use for blank lines.")


(defun tzz-highlighting-install ()
  (interactive)
  (font-lock-mode t)
  (font-lock-add-keywords
   nil 
   `(("^\\([^-A-Za-z0-9]+\\)$" (0 'font-lock-empty-line-face))
     ("\n" (0 'font-lock-empty-line-face))
     ("\\(FIXME\\|TODO\\)" (1 'font-lock-warning-face prepend)))))

(dolist  (hook '(emacs-lisp-mode-hook
		 cperl-mode-hook
		 shell-mode-hook
		 text-mode-hook
		 change-log-mode-hook
		 makefile-mode-hook
		 texinfo-mode-hook))
  (add-hook hook 'tzz-highlighting-install))

And it shouldn't interfere with message mode, but it does.  When I
compose a message, all the highlighting is gone.

Can anyone suggest a fix?  I'm pretty sure this is the problem, since
it's the only thing I've changed in my .emacs and things work fine
without it.

Thanks
Ted



             reply	other threads:[~2003-06-25 15:40 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-06-25 15:40 Ted Zlatanov [this message]
2003-06-25 23:26 ` Johan Bockgård
2003-06-26  4:42   ` Ted Zlatanov
2003-06-26  5:24     ` Harry Putnam
2003-06-26 11:38       ` Ted Zlatanov
2003-07-01 12:02         ` Katsumi Yamaoka
2003-07-07 14:36           ` Ted Zlatanov
2003-07-07 16:54             ` Wes Hardaker
2003-07-08  2:34             ` Katsumi Yamaoka
2003-07-10 20:33               ` Ted Zlatanov
2003-07-11  6:50                 ` Katsumi Yamaoka
2003-07-11 15:21                   ` Ted Zlatanov

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4n3chyi2sv.fsf@lockgroove.bwh.harvard.edu \
    --to=tzz@lifelogs.com \
    /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.
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 NNTP newsgroup(s).