Skip to content

Commit 9a3570d

Browse files
committed
Fix package-lint issues
1 parent e6bbab1 commit 9a3570d

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

json-mode.el

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
;;; json-mode.el --- Major mode for editing JSON files.
1+
;;; json-mode.el --- Major mode for editing JSON files
22

33
;; Copyright (C) 2011-2014 Josh Johnston
44

@@ -63,11 +63,9 @@ Return the new `auto-mode-alist' entry"
6363
(defvar json-mode--auto-mode-entry)
6464

6565
;;;###autoload
66-
(defcustom json-mode-auto-mode-list '(
67-
".babelrc"
66+
(defcustom json-mode-auto-mode-list '(".babelrc"
6867
".bowerrc"
69-
"composer.lock"
70-
)
68+
"composer.lock")
7169
"List of filenames for the JSON entry of `auto-mode-alist'.
7270
7371
Note however that custom `json-mode' entries in `auto-mode-alist'
@@ -162,6 +160,7 @@ json font lock syntactic face function."
162160
(define-derived-mode jsonc-mode json-mode "JSONC"
163161
"Major mode for editing JSON files with comments"
164162
:syntax-table jsonc-mode-syntax-table)
163+
(setq font-lock-defaults '(json-font-lock-keywords-1 t))
165164

166165
;; Well formatted JSON files almost always begin with “{” or “[”.
167166
;;;###autoload

0 commit comments

Comments
 (0)