2

I am using Flycheck using use-package like so:

(use-package flycheck
  :ensure t
  :init
  (global-flycheck-mode))

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

'(flycheck-perl-include-path
(quote
("/myhomedir/myprojectdir")))

and it does not work.

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

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

((cperl-mode
  (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.