diff options
| author | Ravi R Kiran <aine.marina@gmail.com> | 2014-01-01 01:46:25 (GMT) |
|---|---|---|
| committer | Ravikiran Rajagopal <aine.marina@gmail.com> | 2014-01-01 01:46:25 (GMT) |
| commit | 8f249fb0e3ee2fcfde806bbd16717df841fc7a8d (patch) | |
| tree | 5470b1d16fe1eb17c36c2a67aaafbb3df58f6788 | |
| parent | 4b49f1eb2eb1e7a7d273a7d4cd4792d538bc2254 (diff) | |
| download | dotemacs-8f249fb0e3ee2fcfde806bbd16717df841fc7a8d.zip dotemacs-8f249fb0e3ee2fcfde806bbd16717df841fc7a8d.tar.gz dotemacs-8f249fb0e3ee2fcfde806bbd16717df841fc7a8d.tar.bz2 | |
Automatic header line insertion
| -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 |
