From 91ab13ee3946bb6609d47bb510f2be1e6d4b392e Mon Sep 17 00:00:00 2001 From: "Will S. Medrano" Date: Sun, 13 Mar 2016 18:07:58 -0700 Subject: [PATCH] made minor mode lighter customizable --- which-key.el | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/which-key.el b/which-key.el index d874e18d297..ff0716beb16 100644 --- a/which-key.el +++ b/which-key.el @@ -424,6 +424,11 @@ ignored." :group 'which-key :type 'function) +(defcustom which-key-custom-lighter " WK" + "minor mode lighter to use in the mode-line." + :group 'which-key + :type 'string) + (defvar which-key-inhibit nil "Prevent which-key from popping up momentarily by setting this to a non-nil value for the execution of a command. Like this @@ -496,7 +501,7 @@ alongside the actual current key sequence when (define-minor-mode which-key-mode "Toggle which-key-mode." :global t - :lighter " WK" + :lighter which-key-custom-lighter :keymap (let ((map (make-sparse-keymap))) (mapc (lambda (prefix)