(macosx==10.8, python==2.7, emacs==24.3, flake8==2.1.0)
MacPorts でインストールしている場合
$ sudo port install py27-pip $ sudo pip-2.7 install flake8
Emacs
- M-x package-list-pakages
- インストール: flymake-python-pyflakes
(add-hook 'python-mode-hook 'flymake-python-pyflakes-load) (setq flymake-python-pyflakes-executable "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/flake8") (custom-set-variables '(flymake-python-pyflakes-extra-arguments (quote ("--max-line-length=120" "--ignore=E128"))))
確認
hoge.py
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx def hoge(): pass class Hoge: print str(111).zfill(10)