Flycheck in eglot buffers
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user