From f713492679fa1314dd10d31a84ba53e1121a519f Mon Sep 17 00:00:00 2001 From: swaggboi Date: Sun, 23 Mar 2025 17:27:12 -0400 Subject: [PATCH] Don't throw error when no flycheck --- my_home/.emacs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/my_home/.emacs b/my_home/.emacs index 3c1601f..d5d4d0f 100644 --- a/my_home/.emacs +++ b/my_home/.emacs @@ -118,5 +118,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")))