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:
2020-08-19 11:23:04 +01:00
parent ad5fae117a
commit 00823307ac

View File

@@ -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