diff options
Diffstat (limited to 'ravi-init-python.el')
| -rw-r--r-- | ravi-init-python.el | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/ravi-init-python.el b/ravi-init-python.el index 2077266..a850d86 100644 --- a/ravi-init-python.el +++ b/ravi-init-python.el @@ -57,6 +57,13 @@ (add-to-list 'smart-tab-disabled-major-modes 'inferior-python-mode) + (define-auto-insert "\\.py\\'" 'ravi/auto-insert-py) + (defun ravi/auto-insert-py () + (progn + (insert "#!/usr/bin/env python\n\n") + ) + ) + (use-package virtualenvwrapper :config (progn @@ -114,7 +121,8 @@ ;; Use jedi.el for code completion plus documentation browsing. ;; The main issue is that this requires both python-side and emacs-side ;; support, but the python-side support cannot be installed as a package - ;; from MELPA. Fedora does not provide python-epc as an RPM either. + ;; from MELPA. Fedora does not provide python-epc as an RPM either. We + ;; work around it by adding sexpdata, jedi and python-epc as git submodules. (use-package jedi :config (progn |
