diff --git a/init.el b/init.el index 2eef56b..54f48fa 100644 --- a/init.el +++ b/init.el @@ -1351,6 +1351,7 @@ WIDTH and PREFIX are as for `my/-floating-tooltip-fill-string'." ;; flycheck (use-package flycheck + :defer nil :hook ((sh-mode emacs-lisp-mode) . my/flycheck-if-trusted) :custom (flycheck-indication-mode 'left-margin) @@ -1359,7 +1360,6 @@ WIDTH and PREFIX are as for `my/-floating-tooltip-fill-string'." (defun my/flycheck-if-trusted () (when (trusted-content-p) (flycheck-mode))) - ;; Disable some warnings in the scratch buffer (defun my/-flycheck-gen-no-lexical-warning-bytecomp-form () "Generate a form suitable for `flycheck-emacs-lisp-check-form'. @@ -1375,7 +1375,9 @@ This form will ignore lexical binding errors from the byte compiler." 'emacs-lisp-checkdoc) (setq-local flycheck-emacs-lisp-check-form (my/-flycheck-gen-no-lexical-warning-bytecomp-form)))) - (add-hook 'lisp-interaction-mode-hook #'my/-disable-checkdoc-in-scratch)) + (add-hook 'lisp-interaction-mode-hook #'my/-disable-checkdoc-in-scratch) + :config + (global-flycheck-eglot-mode 1)) (use-package consult-flycheck) (defun my/sly-notes-at-point (&optional pos buffer)