From 00bb00649b424de7fb658a5ef80234254828f8f9 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sun, 7 Apr 2019 15:54:03 -0400 Subject: [PATCH] Fix #1065: add +ivy-buffer-unreal-face option --- modules/completion/ivy/autoload/ivy.el | 4 ++-- modules/completion/ivy/config.el | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/modules/completion/ivy/autoload/ivy.el b/modules/completion/ivy/autoload/ivy.el index a8e484aed..33cd6cd2e 100644 --- a/modules/completion/ivy/autoload/ivy.el +++ b/modules/completion/ivy/autoload/ivy.el @@ -18,10 +18,10 @@ "Display the buffer name. Buffers that are considered unreal (see `doom-real-buffer-p') are dimmed with -`font-lock-comment-face'." +`+ivy-buffer-unreal-face'." (if (doom-real-buffer-p (get-buffer candidate)) candidate - (propertize candidate 'face 'font-lock-comment-face))) + (propertize candidate 'face +ivy-buffer-unreal-face))) ;;;###autoload (defun +ivy-rich-buffer-icon (candidate) diff --git a/modules/completion/ivy/config.el b/modules/completion/ivy/config.el index 0afe667d9..ded6ab898 100644 --- a/modules/completion/ivy/config.el +++ b/modules/completion/ivy/config.el @@ -26,6 +26,9 @@ silently ignored. If you want to already use git-grep or grep, set this to nil.") +(defvar +ivy-buffer-unreal-face 'font-lock-comment-face + "The face for unreal buffers in `ivy-switch-to-buffer'.") + (defmacro +ivy-do-action! (action) "Returns an interactive lambda that sets the current ivy action and immediately runs it on the current candidate (ending the ivy session)."