Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add faces for minibuffer prompt #745

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions embark.el
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,12 @@ Used by `embark-completing-read-prompter' and `embark-keymap-help'.")
(defface embark-target '((t :inherit highlight))
"Face used to highlight the target at point during `embark-act'.")

(defface embark-minibuffer-action '((t :inherit highlight))
"Face used to highlight the current action in minibuffer prompt.")

(defface embark-minibuffer-target-types '((t :inherit shadow))
"Face used to highlight the current target types in minibuffer prompt.")

(defcustom embark-quit-after-action t
"Should `embark-act' quit the minibuffer?
This controls whether calling `embark-act' without a prefix
Expand Down Expand Up @@ -1141,10 +1147,10 @@ a repeating sequence of actions."
((plist-get target :multi) "∀ct")
(rep "Rep")
(t "Act"))
'face 'highlight)))
'face 'embark-minibuffer-action)))
(cond
((eq (plist-get target :type) 'embark-become)
(propertize "Become" 'face 'highlight))
(propertize "Become" 'face 'embark-minibuffer-action))
((and (minibufferp)
(not (eq 'embark-keybinding
(completion-metadata-get
Expand All @@ -1163,7 +1169,7 @@ a repeating sequence of actions."
act
(plist-get target :type)
(if shadowed-targets
(format (propertize "(%s)" 'face 'shadow)
(format (propertize "(%s)" 'face 'embark-minibuffer-target-types)
(mapconcat
(lambda (target) (symbol-name (plist-get target :type)))
shadowed-targets
Expand Down