From 10e4be740d2870fb06eb5ab929b44e7453e93a96 Mon Sep 17 00:00:00 2001 From: Stefan Kangas Date: Tue, 8 Aug 2023 19:01:18 +0200 Subject: [PATCH] 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. --- lisp/progmodes/python.el | 4 ++++ 1 file changed, 4 insertions(+) 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'." python-shell-completion-complete-or-indent)) (function-put sym 'command-modes '(python-base-mode inferior-python-mode))) +;;;###autoload +(add-to-list 'auto-mode-alist + '('"/\\(?:Pipfile\\|\\.?flake8\\)\\'" . conf-mode)) + (provide 'python) ;;; python.el ends here -- 2.39.5