[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Some minor suggestions to Tab Bar
From: |
Zhiwei Chen |
Subject: |
Re: Some minor suggestions to Tab Bar |
Date: |
Tue, 6 Apr 2021 03:16:10 +0000 |
>>> #+begin_src emacs-lisp
>>> (defvar tab-bar-move-repeat-map
>>> (let ((map (make-sparse-keymap)))
>>> (define-key map "m" 'tab-move)
>>> (define-key map "M" (lambda ()
>>> (interactive)
>>> (tab-move -1)))
>>> map)
>>> "Keymap to repeat tab move key sequences `C-x t m m'.
>>> Used in `repeat-mode'.")
>>> (put 'tab-move 'repeat-map 'tab-bar-move-repeat-map)
>>> #+end_src
>>
>> One nitpicking is that `C-x t m M m’ is not allowed since `(tab-move -1)`
>> hasn’t a `repeat-map’ property.
>> Maybe name it tab-move-prev and set the property?
>
> These repeat maps are pushed as well in c049c8da58.
Thanks!
--
Zhiwei Chen