From 46b0844bd985a180fc7c27eb6e341b86aec2c5b5 Mon Sep 17 00:00:00 2001 From: Madeleine Sydney Date: Mon, 10 Mar 2025 15:16:47 -0600 Subject: [PATCH] fix(emacs): Fix consequtive prefix args --- users/crumb/programs/emacs/modules/syd-keybinds.el | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/users/crumb/programs/emacs/modules/syd-keybinds.el b/users/crumb/programs/emacs/modules/syd-keybinds.el index 0e26cff..8a88888 100755 --- a/users/crumb/programs/emacs/modules/syd-keybinds.el +++ b/users/crumb/programs/emacs/modules/syd-keybinds.el @@ -133,6 +133,15 @@ (general-def :prefix-map 'syd-leader-code-map) + ;; This is necessary to properly rebind `universal-argument'. + ;; `universal-argument-more' is a command that provides additional prefixes + ;; after the first. Without it, the first 'C-u' will be interpreted as a + ;; prefix argument for the second 'C-u'. + (general-def + :keymaps 'universal-argument-map + "SPC u" #'universal-argument-more + "u" #'universal-argument-more) + ;; Leader (general-def :keymaps 'syd-leader-map