Skip to content

Commit e6bbab1

Browse files
committed
font-lock-keywords is always buffer-local
1 parent 3015fbf commit e6bbab1

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
@@ -153,10 +153,10 @@ json font lock syntactic face function."
153153
(define-derived-mode json-mode javascript-mode "JSON"
154154
"Major mode for editing JSON files"
155155
:syntax-table json-mode-syntax-table
156-
(set (make-local-variable 'font-lock-defaults)
157-
'(json-font-lock-keywords-1
158-
nil nil nil nil
159-
(font-lock-syntactic-face-function . json-mode--syntactic-face))))
156+
(setq font-lock-defaults
157+
'(json-font-lock-keywords-1
158+
nil nil nil nil
159+
(font-lock-syntactic-face-function . json-mode--syntactic-face))))
160160

161161
;;;###autoload
162162
(define-derived-mode jsonc-mode json-mode "JSONC"

0 commit comments

Comments
 (0)