From 00823307ac6d4b53f0a1f99299953be017ee69c1 Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Wed, 19 Aug 2020 11:23:04 +0100 Subject: [PATCH] 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. --- modules/languages/siren-json.el | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/languages/siren-json.el b/modules/languages/siren-json.el index 96e8423..03fd71f 100644 --- a/modules/languages/siren-json.el +++ b/modules/languages/siren-json.el @@ -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