From f375f6cfcfe479d59f290c83d9d5db7088a5b347 Mon Sep 17 00:00:00 2001 From: Sameer Rahmani Date: Thu, 1 Jun 2023 00:42:57 +0100 Subject: [PATCH] Add the which-key support --- core/cubes/editor.el | 17 ++++++++++++++++- core/fg42/cube.el | 2 +- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/core/cubes/editor.el b/core/cubes/editor.el index 108da04..8b304f3 100644 --- a/core/cubes/editor.el +++ b/core/cubes/editor.el @@ -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 diff --git a/core/fg42/cube.el b/core/fg42/cube.el index 5256a27..76cbf6c 100644 --- a/core/fg42/cube.el +++ b/core/fg42/cube.el @@ -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)))