emacs-devel
[Top][All Lists]
Advanced

[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, 23 Mar 2021 12:17:56 +0000


> 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?
--
Zhiwei Chen


reply via email to

[Prev in Thread] Current Thread [Next in Thread]