From 079e0c62d3873b40a8f78de4dbe1fa83bc22d3b9 Mon Sep 17 00:00:00 2001 From: Kyle Meyer Date: Sun, 11 Aug 2013 11:42:07 -0400 Subject: 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. --- init/km-python.el | 3 +++ 1 file changed, 3 insertions(+) (limited to 'init') 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)) -- cgit v1.2.3