[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)
Thanks.
[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.
- map: major-mode --> font-lock-defaults,
Sam Steingold <=
- Re: map: major-mode --> font-lock-defaults, Stefan Monnier, 2001/01/29
- Re: map: major-mode --> font-lock-defaults, Sam Steingold, 2001/01/29
- Re: map: major-mode --> font-lock-defaults, Stefan Monnier, 2001/01/29
- Re: map: major-mode --> font-lock-defaults, Sam Steingold, 2001/01/29
- Re: map: major-mode --> font-lock-defaults, Stefan Monnier, 2001/01/29
- Re: map: major-mode --> font-lock-defaults, Sam Steingold, 2001/01/29
- Re: map: major-mode --> font-lock-defaults, Stefan Monnier, 2001/01/29
- Re: map: major-mode --> font-lock-defaults, Sam Steingold, 2001/01/29