projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
41e766b
)
Open Pipfile and flake8 config files in conf-mode
author
Stefan Kangas
<stefankangas@gmail.com>
Tue, 8 Aug 2023 17:01:18 +0000
(19:01 +0200)
committer
Stefan Kangas
<stefankangas@gmail.com>
Tue, 8 Aug 2023 17:03:11 +0000
(19:03 +0200)
* lisp/progmodes/python.el (auto-mode-alist): Open Pipfile and flake8
configuration files in conf-mode.
lisp/progmodes/python.el
patch
|
blob
|
history
diff --git
a/lisp/progmodes/python.el
b/lisp/progmodes/python.el
index 1930f68617cad2e98dd57e4966d8f60eb3965bcd..9f1940f321063c52a89084e3425cc5147940613f 100644
(file)
--- 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