Add the which-key support
This commit is contained in:
parent
dbb7415d3e
commit
f375f6cfcf
|
@ -51,8 +51,23 @@ For more info checkout [[https://github.com/gregsexton/origami.el]]"
|
||||||
(global-origami-mode t)))
|
(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
|
(->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
|
:init
|
||||||
(require 'helpful)
|
(require 'helpful)
|
||||||
:config
|
:config
|
||||||
|
|
|
@ -172,7 +172,7 @@ It passes the BODY to `fpkg/use'."
|
||||||
`(defcube ,(intern (format "fg42/%s-cube" pkg))
|
`(defcube ,(intern (format "fg42/%s-cube" pkg))
|
||||||
,docs
|
,docs
|
||||||
(:title ,(format "%s cube" pkg)
|
(:title ,(format "%s cube" pkg)
|
||||||
:flag pkg
|
:flag ,pkg
|
||||||
:flag-default t)
|
:flag-default t)
|
||||||
(fpkg/use ,pkg ,@body)))
|
(fpkg/use ,pkg ,@body)))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue