mirror of
https://github.com/jimeh/.emacs.d.git
synced 2026-02-19 13:46:41 +00:00
fix(lang): fix issue with json-mode when native-comp is used
It seems when native-comp is used, the kill-buffer-hook in json-snatcher is registered, even though the library itself isn't registered. And the `jsons-remove-buffer` function does not have a autoload declaration. Hence we use use-package to manually create a autoload for the function.
This commit is contained in:
@@ -31,5 +31,11 @@
|
||||
|
||||
(setq flycheck-checker 'json-jsonlint)))
|
||||
|
||||
;; fix auto-loading issue with json-snatcher' kill-buffer-hook
|
||||
(use-package json-snatcher
|
||||
:defer t
|
||||
:after json-mode
|
||||
:commands (jsons-remove-buffer))
|
||||
|
||||
(provide 'siren-json)
|
||||
;;; siren-js.el ends here
|
||||
|
||||
Reference in New Issue
Block a user