13

GitHub - mtekman/remind-bindings.el: Reminders for your init bindings

 4 years ago
source link: https://github.com/mtekman/remind-bindings.el
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

remind-bindings.el

It is sometimes hard to remember what bindings you have set without having to open up your init file and checking yourself.

This package parses your Emacs init file for use-package or global-set-key calls and summarises the bindings it detects on a package-by-package basis.

This is different from ido-describe-bindings and region-bindings-mode in the sense that the former parses all bindings without much context to what the user has set themselves, and the latter is more a tool for switching bindings in certain contexts.

The package provides a toggleable side-buffer showing all relevant bindings, and it also makes use of omni-quotes.el, such that when omni-quotes-mode is enabled, a random binding is shown in the minibuffer when the user idle.

To make the displayed list of bindings more specific to the buffer, a minor-mode remind-bindings-specific-mode can be enabled.

73578038-efebd680-447e-11ea-9ae1-4cb8c692afd9.gif

Installation

(use-package remind-bindings
  :hook (after-init . remind-bindings-initialise)
  :bind (("C-c C-d" . 'remind-bindings-togglebuffer)   ;; toggle buffer
         ("C-c M-d" . 'remind-bindings-specific-mode))) ;; buffer-specific only

Customization

The default format in which shortcuts are displayed is:

[packagename] key1 → func1 | key2 → func2 | key3 → func3

All text separators and decoration can be customised by modifying:

(setq remind-bindings-format-packbincom "[%s] %s")
(setq remind-bindings-format-bincom "%s → %s")
(setq remind-bindings-format-bindingsep " | ")

Recommend

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK