Skip to content

Commit

Permalink
Remove unnecessary nesting from some face definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
tarsius committed Dec 4, 2023
1 parent b8aefce commit cdeda20
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions lisp/transient.el
Original file line number Diff line number Diff line change
Expand Up @@ -498,10 +498,10 @@ See info node `(transient)Enabling and Disabling Suffixes'."
:group 'transient-faces)

(defface transient-higher-level
`((t (:box ( :line-width ,(if (>= emacs-major-version 28) (cons -1 -1) -1)
:color ,(let ((color (face-attribute 'shadow :foreground nil t)))
(or (and (not (eq color 'unspecified)) color)
"grey60"))))))
`((t :box ( :line-width ,(if (>= emacs-major-version 28) (cons -1 -1) -1)
:color ,(let ((color (face-attribute 'shadow :foreground nil t)))
(or (and (not (eq color 'unspecified)) color)
"grey60")))))
"Face optionally used to highlight suffixes on higher levels.
Also see option `transient-highlight-higher-levels'."
:group 'transient-faces)
Expand Down Expand Up @@ -562,15 +562,15 @@ character used to separate possible values from each other."
:group 'transient-faces)

(defface transient-nonstandard-key
`((t (:box ( :line-width ,(if (>= emacs-major-version 28) (cons -1 -1) -1)
:color "cyan"))))
`((t :box ( :line-width ,(if (>= emacs-major-version 28) (cons -1 -1) -1)
:color "cyan")))
"Face optionally used to highlight keys conflicting with short-argument.
Also see option `transient-highlight-mismatched-keys'."
:group 'transient-faces)

(defface transient-mismatched-key
`((t (:box ( :line-width ,(if (>= emacs-major-version 28) (cons -1 -1) -1)
:color "magenta"))))
`((t :box ( :line-width ,(if (>= emacs-major-version 28) (cons -1 -1) -1)
:color "magenta")))
"Face optionally used to highlight keys without a short-argument.
Also see option `transient-highlight-mismatched-keys'."
:group 'transient-faces)
Expand Down

0 comments on commit cdeda20

Please sign in to comment.