Skip to content

Commit b5e81c5

Browse files
committed
Fix adding auto-mode-alist
* json-mode.el (json-mode--update-auto-mode): Remove argument that appended the new auto-mode-alist JSON entry.
1 parent 8faf4c6 commit b5e81c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

json-mode.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ Return the new `auto-mode-alist' entry"
5757
(old-entry (when (boundp 'json-mode--auto-mode-entry)
5858
json-mode--auto-mode-entry)))
5959
(setq auto-mode-alist (delete old-entry auto-mode-alist))
60-
(add-to-list 'auto-mode-alist new-entry 'json-mode)
60+
(add-to-list 'auto-mode-alist new-entry)
6161
new-entry))
6262

6363
;;;###autoload

0 commit comments

Comments
 (0)