This page gives a quick introduction into Flycheck and an overview of its most important features. Before you start here please make sure that Flycheck is installed.
Now add the following code to your init file to permanently enable syntax checking with Flycheck:
(add-hook 'after-init-hook #'global-flycheck-mode)
Install syntax checker programs¶
Now you need to install syntax checking programs for the languages you’d like to use Flycheck with. The list of supported languages tells you which languages Flycheck supports and what programs it uses.
$ pip install pylint $ npm install eslint
Check syntax in a buffer¶
C-c ! v.
If everything is green Flycheck will now start to check the buffer on the fly while you are editing. Whenever you make a mistake that the eslint or Pylint catch Flycheck will highlight the corresponding place in the buffer with an error underline whose color reflects the severity of the issue. Additionally Flycheck will put a symbol into the fringe for affected lines and show the total number of errors and warnings in the buffer in the mode line.
All Flycheck commands are available in the Emacs Menu at:
The same menu also pops up when you click on the mode line lighter: