Skip to content

Instantly share code, notes, and snippets.

@danielmai
Last active August 29, 2015 14:11
Show Gist options
  • Save danielmai/b0f051851be5a900c9ac to your computer and use it in GitHub Desktop.
Save danielmai/b0f051851be5a900c9ac to your computer and use it in GitHub Desktop.
Setup Emacs Flycheck

Installing Flycheck

First thing’s first, we install Flycheck.

(package-refresh-contents)
(package-install 'flycheck)

Check out the Flycheck Quickstart guide to get started!

You may want to use (global-flycheck-mode) to enable flycheck on all supported buffers.

You should be able to see marks in the fringe for errors and warnings within the buffer.

To see a list of all the errors, use C-c ! s.

Flycheck with Python

Out of the box, Flycheck is compatible with three Python syntax checkers

  • flake8
  • pylint
  • pycompile

I’m not too sure which one is the best, but your best bet is probably between flake8 and pylint. You can choose which syntax checker you want to use with C-c ! s in a buffer with flycheck-mode.

Flycheck with Javascript

Install JSHint: npm install jshint -g.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment