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")))