Skip to content

Commit

Permalink
Merge pull request #60 from MetaDark/master
Browse files Browse the repository at this point in the history
Use magic-fallback-mode-alist instead of magic-mode-alist
  • Loading branch information
joshwnj committed Jan 23, 2019
2 parents ffc92b1 + ddaf811 commit 0e819e5
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 0e819e5

Please sign in to comment.