Zach
Zach

Reputation: 620

Emacs flycheck package installation

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.

Upvotes: 0

Views: 799

Answers (1)

Zach
Zach

Reputation: 620

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.

Upvotes: 0

Related Questions