diff options
Diffstat (limited to 'lisp/autoinsert.el')
-rw-r--r-- | lisp/autoinsert.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/autoinsert.el b/lisp/autoinsert.el index 17a9e4258a2..0fbc3d66c79 100644 --- a/lisp/autoinsert.el +++ b/lisp/autoinsert.el @@ -128,7 +128,7 @@ If this contains a %s, that will be replaced by the matching rule." (("/bin/.*[^/]\\'" . "Shell-Script mode magic number") lambda () - (if (eq major-mode default-major-mode) + (if (eq major-mode (default-value 'major-mode)) (sh-mode))) (ada-mode . ada-header) |