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