aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes/python.el
diff options
context:
space:
mode:
authorStefan Kangas2023-08-08 19:01:18 +0200
committerStefan Kangas2023-08-08 19:03:11 +0200
commit10e4be740d2870fb06eb5ab929b44e7453e93a96 (patch)
tree301e1c06ecafd86ea84aa098bd2298b2bd57e9c2 /lisp/progmodes/python.el
parent41e766b449f3f5b546331b7a3c10f647ad421327 (diff)
downloademacs-10e4be740d2870fb06eb5ab929b44e7453e93a96.tar.gz
emacs-10e4be740d2870fb06eb5ab929b44e7453e93a96.zip
Open Pipfile and flake8 config files in conf-mode
* lisp/progmodes/python.el (auto-mode-alist): Open Pipfile and flake8 configuration files in conf-mode.
Diffstat (limited to 'lisp/progmodes/python.el')
-rw-r--r--lisp/progmodes/python.el4
1 files changed, 4 insertions, 0 deletions
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el
index 1930f68617c..9f1940f3210 100644
--- a/lisp/progmodes/python.el
+++ b/lisp/progmodes/python.el
@@ -6911,6 +6911,10 @@ implementations: `python-mode' and `python-ts-mode'."
6911 python-shell-completion-complete-or-indent)) 6911 python-shell-completion-complete-or-indent))
6912 (function-put sym 'command-modes '(python-base-mode inferior-python-mode))) 6912 (function-put sym 'command-modes '(python-base-mode inferior-python-mode)))
6913 6913
6914;;;###autoload
6915(add-to-list 'auto-mode-alist
6916 '('"/\\(?:Pipfile\\|\\.?flake8\\)\\'" . conf-mode))
6917
6914(provide 'python) 6918(provide 'python)
6915 6919
6916;;; python.el ends here 6920;;; python.el ends here