I am using Flycheck using use-package like so:

(use-package flycheck
  :ensure t

I followed https://randstructure.wordpress.com/2015/06/21/using-emacs-flycheck-with-perl-and-perlbrew/ and tried adding the


and it does not work.

(use-package flycheck
  :ensure t
  :init (global-flycheck-mode)
  (setq flycheck-perl-include-path '("/home/your/path/lib" 
| improve this answer | |

You can also set include paths per project or directory. Add a directory local variable flycheck-perl-include-path with a list of directory strings. Or just create a .dir-locals.el file with

  (flycheck-perl-include-path . ("../lib/" "path/to/you/lib"))))
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.