Paul Perry
Tested on Emacs 24.3 (9.0) on OS X 10.9.2 and Ubuntu 12.04
This configuration automatically installs several plugins using ELPA and Marmalade.
It is based on Andrea Crotti's minimal emacs configuration (check his youtube presentation), with parts of his full emacs configuration and parts of Jessica Hamrick's emacs configuration. It adds exec-path-from-shell.
python-mode
--magit
-- git supportauto-complete
-- auto completionautopair
-- paren matchingyasnippet
-- code snippet insertionsflycheck
-- python checker with flake8jedi
-- general Python supportpydoc-info
-- Python documentationmarkdown-mode
-- support for Markdown filesein
-- IPython notebook plugin
Make sure you have pep8
and pyflakes
and pylint
installed (run
pip install pep8 pyflakes pylint
).
pychecker
is a little script to check that your Python code conforms
to the PEP8 style guide
using the pep8 and
pyflakes Python
packages. This may not be necessary with flycheck and flake8, but if
you want to use the C-c C-w binding to pychecker then you will want to
set this up.
If you do not want this functionality, you can comment out the block
of code in python-settings.el
that starts with "pyflakes flymake
integration". Otherwise, read on.
- In your
~/.bashrc
, add$HOME/bin
to your$PATH
environment variable like so:
export PATH="$HOME/bin:$PATH"
- Create a file in
~/bin/pychecker
with the following contents:
#!/bin/bash
pyflakes "$1"
pep8 --repeat "$1"
true
-
Make it executable with
chmod +x ~/bin/pychecker
. -
Make sure you have
pep8
andpyflakes
andpylint
installed (runpip install pep8 pyflakes pylint
). -
Now it should work!