emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/keycast 7b7059d560 3/7: keycast-separator-width: Remove op


From: ELPA Syncer
Subject: [nongnu] elpa/keycast 7b7059d560 3/7: keycast-separator-width: Remove option
Date: Wed, 26 Jan 2022 09:58:29 -0500 (EST)

branch: elpa/keycast
commit 7b7059d5602a7e52c6e90f51396396f17c3a6199
Author: Jonas Bernoulli <jonas@bernoul.li>
Commit: Jonas Bernoulli <jonas@bernoul.li>

    keycast-separator-width: Remove option
---
 keycast.el | 11 +++--------
 1 file changed, 3 insertions(+), 8 deletions(-)

diff --git a/keycast.el b/keycast.el
index be1d5586da..a99b8a1980 100644
--- a/keycast.el
+++ b/keycast.el
@@ -99,10 +99,10 @@ with no argument and acts on `selected-window'.
   :group 'keycast
   :type 'function)
 
-(defcustom keycast-mode-line-format "%s%k%c%r"
+(defcustom keycast-mode-line-format "%10s%k%c%r"
   "The format spec used by `keycast-mode-line'.
 
-%s `keycast-separator-width' spaces.
+%s Some spaces, intended to be used like so: %10s.
 %k The key using the `keycast-key' face and padding.
 %K The key with no styling and without any padding.
 %c The command using the `keycast-command' face.
@@ -113,11 +113,6 @@ with no argument and acts on `selected-window'.
   :group 'keycast
   :type 'integer)
 
-(defcustom keycast-separator-width 10
-  "How many spaces to insert before the key binding."
-  :group 'keycast
-  :type 'integer)
-
 (defcustom keycast-substitute-alist nil
   "Alist used to substituted events and/or commands for display.
 
@@ -262,7 +257,7 @@ instead."
                          "")))
                 (format-spec
                  format
-                 `((?s . ,(make-string keycast-separator-width ?\s))
+                 `((?s . "")
                    (?k . ,(propertize k 'face 'keycast-key))
                    (?K . ,key)
                    (?c . ,(propertize c 'face 'keycast-command))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]