emacs-devel
[Top][All Lists]
Advanced

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

Re: Fundamental mode vs. special mode


From: Johan Bockgård
Subject: Re: Fundamental mode vs. special mode
Date: Sun, 23 Oct 2011 15:14:15 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.90 (gnu/linux)

Chong Yidong <address@hidden> writes:

> It's not a good idea to add anything to Fundamental mode.  The point of
> it is to be fundamental.

FWIW,

 -- Command: fundamental-mode
     Fundamental mode is a major mode that is not specialized for
     anything in particular.  Other major modes are defined in effect
     by comparison with this one--their definitions say what to change,
     starting from Fundamental mode.  The `fundamental-mode' function
     does _not_ run any mode hooks; you're not supposed to customize
     it.  (If you want Emacs to behave differently in Fundamental mode,
     change the _global_ state of Emacs.)

(boundp 'fundamental-mode-hook) => t

2010-04-28  Stefan Monnier  <address@hidden>

        Make it possible to locally disable a globally enabled mode.
        * simple.el (fundamental-mode): Run fundamental-mode-hook.
        * emacs-lisp/derived.el (define-derived-mode): Use fundamental-mode
        rather than kill-all-local-variables so it runs fundamental-mode-hook.
        * emacs-lisp/easy-mmode.el (define-globalized-minor-mode):
        Use fundamental-mode-hook to run MODE-enable-in-buffers earlier, so
        that subsequent hooks get a chance to disable it.




reply via email to

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