simplify populating my-switch-to-register-map
This commit is contained in:
parent
52d6ab9632
commit
c5bd6b545c
6
init.el
6
init.el
@ -366,11 +366,9 @@ of the key binding used to execute this command."
|
||||
|
||||
(setq my-switch-to-register-map (make-sparse-keymap))
|
||||
|
||||
(let ((character ?a))
|
||||
(while (<= character ?z)
|
||||
(dolist (character (number-sequence ?a ?z))
|
||||
(define-key my-switch-to-register-map
|
||||
(char-to-string character) #'my-switch-to-register)
|
||||
(setq character (1+ character))))
|
||||
(char-to-string character) #'my-switch-to-register))
|
||||
|
||||
(global-set-key (kbd "s-s") my-switch-to-register-map)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user