From e9008efb75a336b2f6894beca09a27a57de13607 Mon Sep 17 00:00:00 2001 From: Alex Kost Date: Thu, 2 Feb 2017 11:01:42 +0300 Subject: [PATCH] Add support for 'ivy' --- README.md | 3 ++- alect-themes.el | 24 ++++++++++++++++++++++++ 2 files changed, 26 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 53c5b04..f763ede 100644 --- a/README.md +++ b/README.md @@ -76,7 +76,8 @@ supported (themed): - [Helm](https://emacs-helm.github.io/helm/) (partial support) - [Hydra](https://github.com/abo-abo/hydra) - [indent-guide](https:/github.com/zk-phi/indent-guide) -- [Magit](http://magit.vc/) (including version 2.1.0) +- [ivy](https://github.com/abo-abo/swiper) +- [Magit](http://magit.vc/) - [markdown](http://jblevins.org/projects/markdown-mode/) - [mu4e](https://github.com/djcb/mu) - [powerline](https://github.com/milkypostman/powerline) diff --git a/alect-themes.el b/alect-themes.el index 3318a51..a2efb11 100644 --- a/alect-themes.el +++ b/alect-themes.el @@ -1056,6 +1056,30 @@ For INVERT, see `alect-get-color'." (lazy-highlight ((,c :foreground ,(gc 'fg+1) :background ,(gc 'bg+2)))) + ;; ivy + (ivy-cursor ((,c :background ,(gc 'cursor) + :foreground ,(gc 'bg-2) + :box (:line-width 1 + :color ,(gc 'bg-2) + :style nil)))) + (ivy-current-match ((,c :foreground ,(gc 'fg+2) + :weight bold))) + (ivy-confirm-face ((,c :inherit minibuffer-prompt + :foreground ,(gc 'green)))) + (ivy-match-required-face ((,c :inherit minibuffer-prompt + :foreground ,(gc 'red)))) + (ivy-virtual ((,c :foreground ,(gc 'red-2)))) + (ivy-remote ((,c :foreground ,(gc 'blue+1)))) + ;; Ideally `ivy-minibuffer-match-face-2' should have some + ;; background, but by default, ivy mixes colors (in + ;; `ivy--add-face') instead of applying only one face. This + ;; may look really ugly, so just disable all minibuffer match + ;; faces. + (ivy-minibuffer-match-face-1 ((,c nil))) + (ivy-minibuffer-match-face-2 ((,c nil))) + (ivy-minibuffer-match-face-3 ((,c :inherit ivy-minibuffer-match-face-2))) + (ivy-minibuffer-match-face-4 ((,c :inherit ivy-minibuffer-match-face-2))) + ;; linum-mode (linum ((,c :foreground ,(gc 'fg-2))))