[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 10e4be740d2: Open Pipfile and flake8 config files in conf-mode
From: |
Stefan Kangas |
Subject: |
master 10e4be740d2: Open Pipfile and flake8 config files in conf-mode |
Date: |
Tue, 8 Aug 2023 13:03:26 -0400 (EDT) |
branch: master
commit 10e4be740d2870fb06eb5ab929b44e7453e93a96
Author: Stefan Kangas <stefankangas@gmail.com>
Commit: Stefan Kangas <stefankangas@gmail.com>
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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master 10e4be740d2: Open Pipfile and flake8 config files in conf-mode,
Stefan Kangas <=