diff options
| author | kobarity | 2025-02-17 23:00:04 +0900 |
|---|---|---|
| committer | Stefan Kangas | 2025-02-19 03:07:34 +0100 |
| commit | 450966223679d51d78cd8bbdba70bda684dd3a36 (patch) | |
| tree | 6b95a143d30630727a423c510eca6c6b37210cbb /lisp/progmodes/python.el | |
| parent | 4faade9f844db5dc09f2805c0f07376663402e41 (diff) | |
| download | emacs-450966223679d51d78cd8bbdba70bda684dd3a36.tar.gz emacs-450966223679d51d78cd8bbdba70bda684dd3a36.zip | |
Add python-ts-mode to ffap-alist
* lisp/progmodes/python.el (ffap-alist): Add
python-ts-mode. (Bug#76364)
Diffstat (limited to 'lisp/progmodes/python.el')
| -rw-r--r-- | lisp/progmodes/python.el | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index 460862578b6..d910c816188 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el | |||
| @@ -5547,9 +5547,8 @@ def __FFAP_get_module_path(objstr): | |||
| 5547 | (defvar ffap-alist) | 5547 | (defvar ffap-alist) |
| 5548 | 5548 | ||
| 5549 | (eval-after-load "ffap" | 5549 | (eval-after-load "ffap" |
| 5550 | '(progn | 5550 | '(dolist (mode '(python-mode python-ts-mode inferior-python-mode)) |
| 5551 | (push '(python-mode . python-ffap-module-path) ffap-alist) | 5551 | (add-to-list 'ffap-alist `(,mode . python-ffap-module-path)))) |
| 5552 | (push '(inferior-python-mode . python-ffap-module-path) ffap-alist))) | ||
| 5553 | 5552 | ||
| 5554 | 5553 | ||
| 5555 | ;;; Code check | 5554 | ;;; Code check |