branch: master
commit 3a00c5a18da3547983e29be496e538a7130f85fb
Author: Justin Burkett <[email protected]>
Commit: Justin Burkett <[email protected]>

    Add and use ivy-highlight-face
    
    ivy.el (ivy-highlight-face): Add
    counsel.el (counsel-describe-function-transformer): Use ivy-highlight-face
    counsel.el (counsel-describe-function): Update docstring
    counsel.el (counsel-describe-variable-transformer): Use ivy-highlight-face
    counsel.el (counsel-describe-variable): Update docstring
---
 counsel.el | 8 ++++----
 ivy.el     | 4 ++++
 2 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/counsel.el b/counsel.el
index 3030a44..aaf754b 100644
--- a/counsel.el
+++ b/counsel.el
@@ -448,7 +448,7 @@ Update the minibuffer with the amount of lines collected 
every
 (defun counsel-describe-variable-transformer (var)
   "Propertize VAR if it's a custom variable."
   (if (custom-variable-p (intern var))
-      (propertize var 'face 'font-lock-variable-name-face)
+      (propertize var 'face 'ivy-highlight-face)
     var))
 
 (ivy-set-display-transformer
@@ -459,7 +459,7 @@ Update the minibuffer with the amount of lines collected 
every
   "Forward to `describe-variable'.
 
 Variables declared using `defcustom' are highlighted according to
-`font-lock-variable-name-face'."
+`ivy-highlight-face'."
   (interactive)
   (let ((enable-recursive-minibuffers t))
     (ivy-read
@@ -484,7 +484,7 @@ Variables declared using `defcustom' are highlighted 
according to
 (defun counsel-describe-function-transformer (function-name)
   "Propertize FUNCTION-NAME if it's an interactive function."
   (if (commandp (intern function-name))
-      (propertize function-name 'face 'font-lock-function-name-face)
+      (propertize function-name 'face 'ivy-highlight-face)
     function-name))
 
 (ivy-set-display-transformer
@@ -495,7 +495,7 @@ Variables declared using `defcustom' are highlighted 
according to
   "Forward to `describe-function'.
 
 Interactive functions \(i.e., commands) are highlighted according
-to `font-lock-function-name-face'."
+to `ivy-highlight-face'."
   (interactive)
   (let ((enable-recursive-minibuffers t))
     (ivy-read "Describe function: "
diff --git a/ivy.el b/ivy.el
index f730653..62d837f 100644
--- a/ivy.el
+++ b/ivy.el
@@ -117,6 +117,10 @@
   '((t :inherit font-lock-builtin-face))
   "Face used by Ivy for displaying keys in `ivy-read-action'.")
 
+(defface ivy-highlight-face
+  '((t :inherit highlight))
+  "Face used by Ivy to highlight certain candidates.")
+
 (setcdr (assoc load-file-name custom-current-group-alist) 'ivy)
 
 (defcustom ivy-height 10

Reply via email to