Gnus development mailing list
 help / color / mirror / Atom feed
* Paren matching and smileys in message mode
@ 2000-03-15 11:01 Kai Großjohann
  0 siblings, 0 replies; only message in thread
From: Kai Großjohann @ 2000-03-15 11:01 UTC (permalink / raw)


The following code seems to do useful things for people who like to
use smileys in message mode.  But then, it probably has lots of bugs.
Maybe if you help to polish it, it could be added to Gnus (as an
option)?

(setq message-font-lock-syntactic-keywords
      '(("[:;8]-\\([(|/)]\\)" 1 (1 . nil))))

(defun kai-message-mode-hook ()
  (setq font-lock-defaults
        `(message-font-lock-keywords nil nil nil nil
          (font-lock-syntactic-keywords . ,message-font-lock-syntactic-keywords)))
  (make-local-variable 'parse-sexp-lookup-properties)
  (setq parse-sexp-lookup-properties message-mode-syntax-table))

(add-hook 'message-mode-hook 'kai-message-mode-hook)

kai
-- 
~/.signature: No such file or directory



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

only message in thread, other threads:[~2000-03-15 11:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-03-15 11:01 Paren matching and smileys in message mode Kai Großjohann

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).