Skip to content

Commit

Permalink
use magic-fallback-mode-alist instead of magic-mode-alist
Browse files Browse the repository at this point in the history
  • Loading branch information
kira-bruneau committed Jan 22, 2019
1 parent ffc92b1 commit ddaf811
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion json-mode.el
Expand Up @@ -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 ()
Expand Down

0 comments on commit ddaf811

Please sign in to comment.