From 6d6a9c85338a2261c130a934237eb30df878f7c2 Mon Sep 17 00:00:00 2001 From: Mountain Man <43313373+MountainMan1312@users.noreply.github.com> Date: Sun, 21 May 2023 20:59:25 -0400 Subject: Only start `flycheck-mode` in appropriate buffers --- init.el | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/init.el b/init.el index 14055be..8659832 100644 --- a/init.el +++ b/init.el @@ -806,8 +806,7 @@ ;; Flycheck (use-package flycheck - :straight t - :init (global-flycheck-mode)) + :straight t) ;; --------------------------------- @@ -822,6 +821,18 @@ :init (setq lsp-keymap-prefix "C-c l")) +;; --------------------------------- +;; Emacs Lisp +;; ---------- +;; The language we all know and love +;; --------------------------------- + +(use-package elisp-mode + :straight (:type built-in) + :commands (emacs-lisp-mode) + :hook (emacs-lisp-mode . flycheck-mode)) + + ;; --------------------------------------------------------------------- -- cgit v1.2.3