From cf2bae52ef9fd92fa5b307d355451aa312eedeb9 Mon Sep 17 00:00:00 2001 From: Jeremy Dormitzer Date: Tue, 2 Apr 2024 15:04:08 -0600 Subject: [PATCH] Add flymake config --- emacs/.emacs.d/config/init-ide.el | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/emacs/.emacs.d/config/init-ide.el b/emacs/.emacs.d/config/init-ide.el index 01838be..941c768 100644 --- a/emacs/.emacs.d/config/init-ide.el +++ b/emacs/.emacs.d/config/init-ide.el @@ -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