[Top][All Lists]

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

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

From: Stefan Monnier
Subject: Re: map: major-mode --> font-lock-defaults
Date: Mon, 29 Jan 2001 09:12:08 -0500

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

It's inherited automatically since it's a buffer-local variable.

        (define-derived-mode new-mode old-mode "New"
          "A New major mode"

-- Stefan

reply via email to

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