emacs-devel
[Top][All Lists]
Advanced

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

font-lock basics?


From: Miles Bader
Subject: font-lock basics?
Date: Mon, 31 Jan 2005 13:03:38 +0900

Is there some trick to using font-lock?

I tried the simplest thing I could think of:

  (progn
    (font-lock-mode -1)
    (kill-all-local-variables)
    (font-lock-add-keywords nil '(("high" . font-lock-keyword-face)))
    (font-lock-mode t))

on the following text in a buffer:

   Oh how I love high society.

... and .... no highlighted keywords.

What's up?

Here's the resulting value of font-lock-keywords:

   font-lock-keywords's value is 
   (t
    (("high" . font-lock-keyword-face))
    ("high"
     (0 font-lock-keyword-face)))

   Local in buffer asdf; global value is nil

-Miles
-- 
.Numeric stability is probably not all that important when you're guessing.




reply via email to

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