From 558f9ba1c1192fdc6680e21a0d75b1aeafb3f1a2 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Wed, 18 Sep 2002 16:47:48 +0000 Subject: [PATCH] (calc-mode): Add font-lock-defontify to change-major-mode-hook. --- lisp/calc/calc.el | 1 + 1 file changed, 1 insertion(+) diff --git a/lisp/calc/calc.el b/lisp/calc/calc.el index 09614aa1faf..f119266ddf7 100644 --- a/lisp/calc/calc.el +++ b/lisp/calc/calc.el @@ -1049,6 +1049,7 @@ Notations: 3.14e6 3.14 * 10^6 (mapcar (function (lambda (v) (make-local-variable v))) calc-local-var-list) (make-local-variable 'overlay-arrow-position) (make-local-variable 'overlay-arrow-string) + (add-hook 'change-major-mode-hook 'font-lock-defontify nil t) (setq truncate-lines t) (setq buffer-read-only t) (setq major-mode 'calc-mode) -- 2.39.5