Skip to content

Commit 0e819e5

Browse files
authored
Merge pull request #60 from MetaDark/master
Use magic-fallback-mode-alist instead of magic-mode-alist
2 parents ffc92b1 + ddaf811 commit 0e819e5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

json-mode.el

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,8 @@ This function calls `json-mode--update-auto-mode' to change the
121121
(set (make-local-variable 'font-lock-defaults) '(json-font-lock-keywords-1 t)))
122122

123123
;; Well formatted JSON files almost always begin with “{” or “[”.
124-
(add-to-list 'magic-mode-alist '("^[{[]$" . json-mode))
124+
;;;###autoload
125+
(add-to-list 'magic-fallback-mode-alist '("^[{[]$" . json-mode))
125126

126127
;;;###autoload
127128
(defun json-mode-show-path ()

0 commit comments

Comments
 (0)