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.
This commit is contained in:
Stefan Kangas 2023-08-08 19:01:18 +02:00
parent 41e766b449
commit 10e4be740d

View file

@ -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