[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Is there any handy way to view a custom key map?
From: |
Jean Louis |
Subject: |
Re: Is there any handy way to view a custom key map? |
Date: |
Sat, 15 Jan 2022 19:44:26 +0300 |
User-agent: |
Mutt/2.1.5+104 (cd3a5c8) (2022-01-09) |
* Eduardo Ochs <eduardoochs@gmail.com> [2022-01-15 19:20]:
> Hi Jean-Louis,
>
> If you have eev installed, try this:
>
> (defvar rcd-db-mode-map
> (let ((map (make-sparse-keymap)))
> (set-keymap-parent map tabulated-list-mode-map)
> (define-key map (kbd "/") #'rcd-tabulated-filter)
> (define-key map (kbd "G") #'goto-line)
> (define-key map (kbd "Q") 'rcd-db-kill-database-buffers)
> (define-key map (kbd "U") 'rcd-tabulated-remove-marks)
> (define-key map (kbd "V") #'rcd-tabulated-id-to-register)
> (define-key map (kbd "\\") #'rcd-tabulated-filter-reset)
> (define-key map (kbd "d") #'rcd-db-delete-tab-database-entry)
> (define-key map (kbd "e") #'rcd-db-edit-tab-database-entry)
> (define-key map (kbd "g") #'rcd-tabulated-refresh)
> (define-key map (kbd "j") #'next-line)
> (define-key map (kbd "k") #'previous-line)
> (define-key map (kbd "m") #'rcd-tabulated-mark-id)
> (define-key map (kbd "u") #'rcd-tabulated-unmark-id)
> (define-key map (kbd "z") #'rcd-tabulated-refresh)
> map)
> "The basic RCD database keymap")
>
> (find-ekeymapdescr rcd-db-mode-map)
>
> The source code of `find-ekeymapdescr' is here,
>
> http://angg.twu.net/eev-current/eev-blinks.el.html#find-einternals
>
> and it should be easy to adapt it to what you need.
Yes, thanks, that is isolated and for me better than standard C-h b,
and I will see to include "q" to exit the buffer.
--
Jean
Take action in Free Software Foundation campaigns:
https://www.fsf.org/campaigns
In support of Richard M. Stallman
https://stallmansupport.org/