From b91e6456473c21f2f50f31e9918660838dacd29e Mon Sep 17 00:00:00 2001 From: swaggboi Date: Sun, 23 Mar 2025 17:29:07 -0400 Subject: [PATCH] Don't do flycheck stuff without --- my_home/.emacs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/my_home/.emacs b/my_home/.emacs index 94a952a..9d79bd5 100644 --- a/my_home/.emacs +++ b/my_home/.emacs @@ -112,5 +112,6 @@ (setq js-switch-indent-offset 4) ;; Flycheck -(add-hook 'after-init-hook #'global-flycheck-mode) -(setq flycheck-perl-include-path '("$HOME/perl5/lib/perl5")) +(when (require 'flycheck nil 'noerror) + (add-hook 'after-init-hook #'global-flycheck-mode) + (setq flycheck-perl-include-path '("$HOME/perl5/lib/perl5")))