Emacs: flymake-python-pyflakes package

This article will describe using flymake-python-pyflakes which provides dynamic syntax check for python.

1 Install flymake-python-pyflakes package

Install flymake-python-pyflakes package with M-x package-list-packages.

flymake-python-... 0.9  installed  A flymake handler for python-mode files

2 Install pyflakes

Install pyflakes with pip.

$ sudo pip install pyflakes

3 ${HOME}/.emacs

Add flymake-python-pyflakes-load to python-mode.

(add-hook 'python-mode-hook 'flymake-python-pyflakes-load)

4 Execution result

The unused_value is not used.