From: Glenn Morris Date: Wed, 5 Jul 2017 19:21:28 +0000 (-0400) Subject: * lisp/progmodes/python.el (auto-mode-alist): Add .pyi. (Bug#27847) X-Git-Tag: emacs-26.0.90~520^2~5 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=94b2e1fc00f90b4072b4a998caf2054c540b7ac4;p=emacs.git * lisp/progmodes/python.el (auto-mode-alist): Add .pyi. (Bug#27847) --- diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index 464b931cffc..6f169123b95 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el @@ -273,7 +273,7 @@ (autoload 'help-function-arglist "help-fns") ;;;###autoload -(add-to-list 'auto-mode-alist (cons (purecopy "\\.pyw?\\'") 'python-mode)) +(add-to-list 'auto-mode-alist (cons (purecopy "\\.py[iw]?\\'") 'python-mode)) ;;;###autoload (add-to-list 'interpreter-mode-alist (cons (purecopy "python[0-9.]*") 'python-mode))