From: Stefan Kangas Date: Tue, 8 Aug 2023 17:01:18 +0000 (+0200) Subject: Open Pipfile and flake8 config files in conf-mode X-Git-Tag: archive/raspbian/1%30.1+1-3+rpi1^2~2^2~20^2~4724 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=10e4be740d2870fb06eb5ab929b44e7453e93a96;p=emacs.git 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. --- 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