[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Some minor suggestions to Tab Bar
From: |
Juri Linkov |
Subject: |
Re: Some minor suggestions to Tab Bar |
Date: |
Tue, 06 Apr 2021 00:19:27 +0300 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu) |
>> On Mar 23, 2021, at 2:47 AM, Juri Linkov <juri@linkov.net> wrote:
>>
>>> `tab-bar-switch-to-next-tab` and `tab-bar-switch-to-prev-tab` should have a
>>> repeat-map property.
>>
>> #+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.
- Re: Some minor suggestions to Tab Bar,
Juri Linkov <=