cbm repeat bindings

This commit is contained in:
David Morgan 2022-10-24 16:38:23 +01:00
parent a7ca4e3306
commit 4c9ca1c1d2
Signed by: djm
GPG Key ID: C171251002C200F2
1 changed files with 6 additions and 2 deletions

View File

@ -126,9 +126,13 @@
("C-<" . buffer-ring-prev-buffer)
("C->" . buffer-ring-next-buffer))
;; TODO C-c ./C-c , C-c >/C-c < , available (but the first two currently clash with other bindings)
;; C-<left> and C-<right> can be used
(use-package cbm
:config
(defvar cbm-repeat-map
(let ((map (make-sparse-keymap)))
(define-key map (kbd "<") #'cbm-cycle)
map))
(put 'cbm-cycle 'repeat-map 'cbm-repeat-map)
:bind
("C-c C-b <" . cbm-cycle)
("C-c C-b C-b" . cbm-switch-buffer))