From 8f249fb0e3ee2fcfde806bbd16717df841fc7a8d Mon Sep 17 00:00:00 2001 From: Ravi R Kiran Date: Tue, 31 Dec 2013 17:46:25 -0800 Subject: Automatic header line insertion 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 -- cgit v0.10.1