From c20af146370f754e5d19e310bd9549e36bd87592 Mon Sep 17 00:00:00 2001 From: 10sr <8.slashes@gmail.com> Date: Fri, 28 Apr 2023 22:45:49 +0900 Subject: [PATCH] Check mode-class property for special modes In addition to checking parent mode --- editorconfig.el | 3 +++ 1 file changed, 3 insertions(+) diff --git a/editorconfig.el b/editorconfig.el index d0f59988..258cad12 100644 --- a/editorconfig.el +++ b/editorconfig.el @@ -403,6 +403,9 @@ Make a message by passing ARGS to `format-message'." "Return non-nil when Editorconfig is disabled for MAJORMODE." (cl-assert majormode) (or (provided-mode-derived-p majormode 'special-mode) + ;; Some special modes (like `archive-mode') are not derived from + ;; `special-mode' + (eq (get majormode 'mode-class) 'special) (memq majormode editorconfig-exclude-modes)))