diff options
author | Kyle Meyer <meyerkya@gmail.com> | 2013-08-11 11:42:07 -0400 |
---|---|---|
committer | Kyle Meyer <meyerkya@gmail.com> | 2013-08-12 00:03:23 -0400 |
commit | 079e0c62d3873b40a8f78de4dbe1fa83bc22d3b9 (patch) | |
tree | 486e0a44206208cc2e0b708f7fb01161d85d30fa | |
parent | 2edd0457cc7414941fa16820e7f4038200ecc844 (diff) | |
download | emacs.d-079e0c62d3873b40a8f78de4dbe1fa83bc22d3b9.tar.gz |
Add python2/3 variants to interpreter mode alist
For cases that specify python2 or python3 specifically in shebang but
don't have a .py extension.
Before I was using "-*- mode: python -*-" in these files.
-rw-r--r-- | init/km-python.el | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/init/km-python.el b/init/km-python.el index 38d0fe6..7840646 100644 --- a/init/km-python.el +++ b/init/km-python.el @@ -22,3 +22,6 @@ (compile "py.test2")))) (add-hook 'python-mode-hook 'km/python-hook) + +(add-to-list 'interpreter-mode-alist '("python2" . python-mode)) +(add-to-list 'interpreter-mode-alist '("python3" . python-mode)) |