]> git.eshelyaron.com Git - emacs.git/commitdiff
Add repeat-map for Python indentation commands
authorPaul Nelson <ultrono@gmail.com>
Mon, 31 Mar 2025 10:12:01 +0000 (12:12 +0200)
committerEshel Yaron <me@eshelyaron.com>
Fri, 4 Apr 2025 14:16:04 +0000 (16:16 +0200)
* lisp/progmodes/python.el (python-indent-repeat-map): New
keymap for repeating Python indentation commands when using
'repeat-mode' (bug#77417).

(cherry picked from commit 67c89a675df936abbd2b3925adda8d21b31ae59a)

lisp/progmodes/python.el

index aa600e1ace61f03512228fcd2d87156bd364ab7d..5ac17896b44b41dc1a8b8967bd44533b003ac901 100644 (file)
@@ -369,6 +369,13 @@ effect."
   ;; Utilities
   "<remap> <complete-symbol>" #'completion-at-point)
 
+(defvar-keymap python-indent-repeat-map
+  :doc "Keymap to repeat Python indentation commands.
+Used in `repeat-mode'."
+  :repeat t
+  "<" #'python-indent-shift-left
+  ">" #'python-indent-shift-right)
+
 (easy-menu-define python-menu python-base-mode-map
   "Menu used for ´python-mode'."
   '("Python"