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))
|
(setq my-switch-to-register-map (make-sparse-keymap))
|
||||||
|
|
||||||
(let ((character ?a))
|
(dolist (character (number-sequence ?a ?z))
|
||||||
(while (<= character ?z)
|
|
||||||
(define-key my-switch-to-register-map
|
(define-key my-switch-to-register-map
|
||||||
(char-to-string character) #'my-switch-to-register)
|
(char-to-string character) #'my-switch-to-register))
|
||||||
(setq character (1+ character))))
|
|
||||||
|
|
||||||
(global-set-key (kbd "s-s") my-switch-to-register-map)
|
(global-set-key (kbd "s-s") my-switch-to-register-map)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user