diff options
Diffstat (limited to 'lisp/progmodes/python.el')
| -rw-r--r-- | lisp/progmodes/python.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index 848a26229e6..b6981c9156c 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el | |||
| @@ -7485,7 +7485,8 @@ implementations: `python-mode' and `python-ts-mode'." | |||
| 7485 | (treesit-major-mode-setup) | 7485 | (treesit-major-mode-setup) |
| 7486 | ;; Enable the `sexp' navigation by default | 7486 | ;; Enable the `sexp' navigation by default |
| 7487 | (setq-local forward-sexp-function #'treesit-forward-sexp | 7487 | (setq-local forward-sexp-function #'treesit-forward-sexp |
| 7488 | treesit-sexp-thing 'sexp) | 7488 | treesit-sexp-thing 'sexp |
| 7489 | treesit-sexp-thing-down-list 'list) | ||
| 7489 | 7490 | ||
| 7490 | (when (>= emacs-major-version 31) | 7491 | (when (>= emacs-major-version 31) |
| 7491 | (setq-local hs-treesit-things '(or defun sexp)) | 7492 | (setq-local hs-treesit-things '(or defun sexp)) |