Skip to content

Commit badc4e6

Browse files
authored
font-lock-keywords is always buffer-local
1 parent 11a8b8e commit badc4e6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

json-mode.el

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -151,10 +151,10 @@ json font lock syntactic face function."
151151
(define-derived-mode json-mode javascript-mode "JSON"
152152
"Major mode for editing JSON files."
153153
:syntax-table json-mode-syntax-table
154-
(set (make-local-variable 'font-lock-defaults)
155-
'(json-font-lock-keywords-1
156-
nil nil nil nil
157-
(font-lock-syntactic-face-function . json-mode--syntactic-face))))
154+
(setq font-lock-defaults)
155+
'(json-font-lock-keywords-1
156+
nil nil nil nil
157+
(font-lock-syntactic-face-function . json-mode--syntactic-face))))
158158

159159
;;;###autoload
160160
(define-derived-mode jsonc-mode json-mode "JSONC"

0 commit comments

Comments
 (0)