python-mode里, 怎么跳转到括号的另一半?


#1

比如: test(1, 2, 3)

光标在’(‘上或者’)'后面时候, 如何跳到另一半? C-M-b和C-M-f好像都不管用了


#2

可以用其他插件来实现比如 paredit 试试


#3

可以用 C-M-n/p, forward-list


#4

(show-paren-mode t)

(defun zx()
  (interactive)
  (let ((paren (show-paren--default))
	there that)
    (when paren
      (setq there (nth 0  paren))
      (setq that (nth 2 paren))
      (if (> there that)
	  (goto-char that)
	(goto-char (+ 1 that)))
      )))

(define-key global-map "\M-l" 'zx)

M-l OK???