Skip to content

paulperry/.emacs.d

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Emacs Configuration

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.

Emacs plugins

  • python-mode --
  • magit -- git support
  • auto-complete -- auto completion
  • autopair -- paren matching
  • yasnippet -- code snippet insertions
  • flycheck -- python checker with flake8
  • jedi -- general Python support
  • pydoc-info -- Python documentation
  • markdown-mode -- support for Markdown files
  • ein -- IPython notebook plugin

Make sure you have pep8 and pyflakes and pylint installed (run pip install pep8 pyflakes pylint).

pychecker

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.

  1. In your ~/.bashrc, add $HOME/bin to your $PATH environment variable like so:
export PATH="$HOME/bin:$PATH"
  1. Create a file in ~/bin/pychecker with the following contents:
#!/bin/bash

pyflakes "$1"
pep8 --repeat "$1"
true
  1. Make it executable with chmod +x ~/bin/pychecker.

  2. Make sure you have pep8 and pyflakes and pylint installed (run pip install pep8 pyflakes pylint).

  3. Now it should work!

About

emacs.d directory and configs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published