From ddaf8114b299f41c78691bb2651658406b850faf Mon Sep 17 00:00:00 2001 From: MetaDark Date: Sat, 30 Jun 2018 00:35:03 -0400 Subject: [PATCH] use magic-fallback-mode-alist instead of magic-mode-alist --- json-mode.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/json-mode.el b/json-mode.el index da098c3..a9f6463 100644 --- a/json-mode.el +++ b/json-mode.el @@ -121,7 +121,8 @@ This function calls `json-mode--update-auto-mode' to change the (set (make-local-variable 'font-lock-defaults) '(json-font-lock-keywords-1 t))) ;; Well formatted JSON files almost always begin with “{” or “[”. -(add-to-list 'magic-mode-alist '("^[{[]$" . json-mode)) +;;;###autoload +(add-to-list 'magic-fallback-mode-alist '("^[{[]$" . json-mode)) ;;;###autoload (defun json-mode-show-path ()