Emacs flycheck package installation

689 views Asked by At

I try to use the flycheck package which I installed through the package-list.

Following advices from here I added this line to my .emacs:

(require 'flycheck)

Now I get the following error when starting emacs:

Warning (initialization): An error occurred while loading `~/.emacs':

File error: Cannot open load file, no file or folder of this type, flycheck

Is this line no longer required? Should I add other lines instead?

Thanks in advance.

1

There are 1 answers

0
Zach On

Ok following flycheck documentation I installed the package "use-package" and added the following to my config file:

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

Now it works.