Add the which-key support

This commit is contained in:
Sameer Rahmani 2023-06-01 00:42:57 +01:00
parent dbb7415d3e
commit f375f6cfcf
Signed by: lxsameer
GPG Key ID: B0A4AF28AB9FD90B
2 changed files with 17 additions and 2 deletions

View File

@ -51,8 +51,23 @@ For more info checkout [[https://github.com/gregsexton/origami.el]]"
(global-origami-mode t)))
(->cube which-key
"which-key is a minor mode for Emacs that displays the key bindings following
your currently entered incomplete command (a prefix) in a popup. For example,
after enabling the minor mode if you enter ~C-x~ and wait for the default of
1 second the minibuffer will expand with all of the available key bindings
that follow ~C-x~ (or as many as space allows given your settings).
This includes prefixes like ~C-x 8~ which are shown in a different face."
:init
(require 'which-key)
:config
(which-key-setup-side-window-bottom)
(which-key-mode))
(->cube helpful
"Helpful is an alternative to the built-in Emacs help that provides much more contextual information."
"Helpful is an alternative to the built-in Emacs help that provides much more
contextual information."
:init
(require 'helpful)
:config

View File

@ -172,7 +172,7 @@ It passes the BODY to `fpkg/use'."
`(defcube ,(intern (format "fg42/%s-cube" pkg))
,docs
(:title ,(format "%s cube" pkg)
:flag pkg
:flag ,pkg
:flag-default t)
(fpkg/use ,pkg ,@body)))