• Stefan Monnier's avatar
    Make it possible to locally disable a globally enabled mode. · 56924d99
    Stefan Monnier authored
    * 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.
    56924d99
derived.el 17.4 KB