This commit is contained in:
Zelong Kuang
2025-12-22 12:34:45 +11:00
parent b062f75562
commit 5b22917383

View File

@@ -1,7 +1,28 @@
;; -*- lexical-binding: t; -*-
(use-package flymake
:hook (prog-mode . flymake-mode))
:hook (prog-mode)
:diminish
:functions my-elisp-flymake-byte-compile
:bind ("C-c d" . flymake-show-buffer-diagnostics)
:custom
(flymake-no-changes-timeout nil)
(flymake-fringe-indicator-position 'right-fringe)
(flymake-margin-indicator-position 'right-margin)
:config
;; Check elisp with `load-path'
(defun my-elisp-flymake-byte-compile (fn &rest args)
"Wrapper for `elisp-flymake-byte-compile'."
(let ((elisp-flymake-byte-compile-load-path
(append elisp-flymake-byte-compile-load-path load-path)))
(apply fn args)))
(advice-add 'elisp-flymake-byte-compile :around #'my-elisp-flymake-byte-compile))
(use-package flyover
:diminish
:hook flymake-mode
:custom (flyover-checkers '(flymake)))
(use-package jsonrpc)
(use-package eglot