From 8002e7a2ec6711b057529db082ed2f3691912004 Mon Sep 17 00:00:00 2001 From: Augusto Stoffel Date: Sun, 18 Sep 2022 08:47:01 +0200 Subject: [PATCH 2/2] Remap 'up-list' in python-mode-map The original 'up-list' command doesn't work as expected in python-mode, and its sibling 'backward-up-list' already has a remapping. * lisp/progmodes/python.el (python-mode-map): Remap 'up-list' to 'python-nav-up-list'. --- lisp/progmodes/python.el | 1 + 1 file changed, 1 insertion(+) diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index 6ef468d2cb..09f94f4b34 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el @@ -300,6 +300,7 @@ python-mode-map (define-key map [remap backward-sentence] #'python-nav-backward-block) (define-key map [remap forward-sentence] #'python-nav-forward-block) (define-key map [remap backward-up-list] #'python-nav-backward-up-list) + (define-key map [remap up-list] #'python-nav-up-list) (define-key map [remap mark-defun] #'python-mark-defun) (define-key map "\C-c\C-j" #'imenu) ;; Indent specific -- 2.37.3