diff options
| author | Stefan Kangas | 2024-10-05 01:08:14 +0200 |
|---|---|---|
| committer | Stefan Kangas | 2024-10-05 01:08:14 +0200 |
| commit | 6e8fc4f6eabe21fc3e6df8c860a99e3e5f3748fd (patch) | |
| tree | dd3981cc4cfe2e68411f9f75cac41c36d81485d7 /lisp/progmodes/python.el | |
| parent | e2b8e9d940d1bddff9c1d201f8ca6ea85f2af104 (diff) | |
| download | emacs-6e8fc4f6eabe21fc3e6df8c860a99e3e5f3748fd.tar.gz emacs-6e8fc4f6eabe21fc3e6df8c860a99e3e5f3748fd.zip | |
Use python-mode for SCons build files
SCons is a build system whose associated files are Python scripts.
Ref: https://www.scons.org/doc/0.96/HTML/scons-user/x325.html
* lisp/progmodes/python.el (python--auto-mode-alist-regexp):
Use 'python-mode' for SCons build files.
Diffstat (limited to 'lisp/progmodes/python.el')
| -rw-r--r-- | lisp/progmodes/python.el | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index 7576bae9f95..173a9bc3692 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el | |||
| @@ -295,10 +295,12 @@ | |||
| 295 | 295 | ||
| 296 | ;;;###autoload | 296 | ;;;###autoload |
| 297 | (defconst python--auto-mode-alist-regexp | 297 | (defconst python--auto-mode-alist-regexp |
| 298 | (rx "." (or "py" | 298 | (rx (or |
| 299 | "pth" ; Python Path Configuration File | 299 | (seq "." (or "py" |
| 300 | "pyi" ; Python Stub File (PEP 484) | 300 | "pth" ; Python Path Configuration File |
| 301 | "pyw") ; MS-Windows specific extension | 301 | "pyi" ; Python Stub File (PEP 484) |
| 302 | "pyw")) ; MS-Windows specific extension | ||
| 303 | (seq "/" (or "SConstruct" "SConscript"))) ; SCons Build Files | ||
| 302 | eos)) | 304 | eos)) |
| 303 | 305 | ||
| 304 | ;;;###autoload | 306 | ;;;###autoload |