Add flymake config

This commit is contained in:
Jeremy Dormitzer 2024-04-02 15:04:08 -06:00
parent 20a3d96799
commit cf2bae52ef

View File

@ -44,6 +44,21 @@
:custom
(xref-prompt-for-identifier nil))
;; Inline syntax checking
(use-package flymake
:straight (:type built-in)
:config
(defvar flymake-map (make-sparse-keymap)
"Keymap for flymake commands.")
(general-def flymake-map
"n" #'flymake-goto-next-error
"p" #'flymake-goto-prev-error
"l" #'flymake-show-diagnostics-buffer
"a" #'flymake-show-project-diagnostics)
(leader-def-key "e" flymake-map)
:hook (prog-mode . flymake-mode))
(use-package eglot
:commands (eglot)
:config