[Top][All Lists]

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

map: major-mode --> font-lock-defaults

From: Sam Steingold
Subject: map: major-mode --> font-lock-defaults
Date: 28 Jan 2001 00:24:40 -0500
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.0.96

How do I determine font locking scheme of a major mode?
font-lock-defaults-alist is now deprecated, so

        (assq 'c-mode font-lock-defaults-alist)

is wrong (I used it in e20).
Do I have to use something like this:

        (with-temp-buffer (c-mode) font-lock-defaults)

(I want my derived move to inherit font-lock-defaults too)


[XEmacs uses symbol properties, like
        (get 'c-mode 'font-lock-defaults)
 which appears to be a good idea]

Sam Steingold (http://www.podval.org/~sds)
Sinners can repent, but stupid is forever.

reply via email to

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