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