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:
parent
41e766b449
commit
10e4be740d
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue