[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: how to go back to matching parenthesis in python-mode?
From: |
Kévin Le Gouguec |
Subject: |
Re: how to go back to matching parenthesis in python-mode? |
Date: |
Mon, 25 Oct 2021 08:20:39 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
edgar@openmail.cc writes:
> How can I go back to the matching parenthesis? Thank you
>
> GNU Emacs 27.2 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.27,
Up to version 27.2, the recommended way (explained in the opening
commentary of python.el[1]) is to set forward-sexp-function to nil in
python-mode-hook:
(add-hook 'python-mode-hook
(lambda () (setq forward-sexp-function nil)))
In 28.1, the new user option python-forward-sexp-function will let you
do away with the hook[2].
[1]
https://git.savannah.gnu.org/cgit/emacs.git/tree/lisp/progmodes/python.el?h=emacs-27.2#n59
[2]
https://git.savannah.gnu.org/cgit/emacs.git/tree/etc/NEWS?h=emacs-28&id=1e8be48738e1324edb9891ff6f7077bd1306cdd7#n2862