Skip to content

Instantly share code, notes, and snippets.

@PuercoPop
Created November 6, 2013 15:07
Show Gist options
  • Save PuercoPop/7337561 to your computer and use it in GitHub Desktop.
Save PuercoPop/7337561 to your computer and use it in GitHub Desktop.
minimal virtualenvwrapper and jedi.el emacs configuration.
(setq venv-location "~/.envs/")
(venv-initialize-eshell)
(venv-initialize-interactive-shells)
(setq jedi:setup-keys t
jedi:use-shortcuts t)
(add-hook 'python-mode-hook
'(lambda ()
(setq fill-column 79)
(add-hook 'before-save-hook 'delete-trailing-whitespace)
(define-key python-mode-map (kbd "<f5>") 'pep8)
(font-lock-add-keywords
nil
'(("\\<\\(FIXME\\|TODO\\|BUG\\):" 1 font-lock-warning-face t)))
(jedi:setup)
(jedi:ac-setup)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment