We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b5e81c5 commit f59feddCopy full SHA for f59fedd
json-mode.el
@@ -116,6 +116,9 @@ This function calls `json-mode--update-auto-mode' to change the
116
"Major mode for editing JSON files"
117
(set (make-local-variable 'font-lock-defaults) '(json-font-lock-keywords-1 t)))
118
119
+;; Well formatted JSON files almost always begin with “{” or “[”.
120
+(add-to-list 'magic-mode-alist '("^[{[]$" . json-mode))
121
+
122
;;;###autoload
123
(defun json-mode-show-path ()
124
(interactive)
0 commit comments