Flycheck in eglot buffers

This commit is contained in:
2026-08-26 03:43:46 -07:00
parent 4c44f3765f
commit 1b59dbf4b0
+4 -2
View File
@@ -1351,6 +1351,7 @@ WIDTH and PREFIX are as for `my/-floating-tooltip-fill-string'."
;; flycheck ;; flycheck
(use-package flycheck (use-package flycheck
:defer nil
:hook ((sh-mode emacs-lisp-mode) . my/flycheck-if-trusted) :hook ((sh-mode emacs-lisp-mode) . my/flycheck-if-trusted)
:custom :custom
(flycheck-indication-mode 'left-margin) (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 () (defun my/flycheck-if-trusted ()
(when (trusted-content-p) (when (trusted-content-p)
(flycheck-mode))) (flycheck-mode)))
;; Disable some warnings in the scratch buffer ;; Disable some warnings in the scratch buffer
(defun my/-flycheck-gen-no-lexical-warning-bytecomp-form () (defun my/-flycheck-gen-no-lexical-warning-bytecomp-form ()
"Generate a form suitable for `flycheck-emacs-lisp-check-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) 'emacs-lisp-checkdoc)
(setq-local flycheck-emacs-lisp-check-form (setq-local flycheck-emacs-lisp-check-form
(my/-flycheck-gen-no-lexical-warning-bytecomp-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) (use-package consult-flycheck)
(defun my/sly-notes-at-point (&optional pos buffer) (defun my/sly-notes-at-point (&optional pos buffer)