Skip to content

Commit

Permalink
transient-information: Use a space as the fake key
Browse files Browse the repository at this point in the history
Most suffix bindings are one character long.  The default `format'
for both proper suffixes and display-only suffixes is " %k %d".
Therefore, if we use something that is one character long as the
face key, then things are aligned most of the time.
  • Loading branch information
tarsius committed Nov 2, 2023
1 parent 8e15a29 commit 533578b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lisp/transient.el
Original file line number Diff line number Diff line change
Expand Up @@ -753,7 +753,8 @@ slot is non-nil."
"Superclass for suffix command.")

(defclass transient-information (transient-suffix)
((format :initform " %k %d"))
((format :initform " %k %d")
(key :initform " "))
"Display-only information.
A suffix object with no associated command.")

Expand Down

0 comments on commit 533578b

Please sign in to comment.