branch: externals/ivy-hydra
commit 6ab24b6b977126b4c104a3ae145659bbabf313e4
Author: Basil L. Contovounesios <[email protected]>
Commit: Basil L. Contovounesios <[email protected]>
* ivy.el: Use with-eval-after-load
The macro was added in Emacs 24.4 and has the benefit of not hiding
its body from the byte-compiler.
---
ivy.el | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/ivy.el b/ivy.el
index 1664796..006be02 100644
--- a/ivy.el
+++ b/ivy.el
@@ -1777,8 +1777,8 @@ This string is inserted into the minibuffer."
(const :tag "De Bruijn" de-bruijn)
(const :tag "Words" words)))
-(eval-after-load 'avy
- '(add-to-list 'avy-styles-alist `(ivy-avy . ,ivy-avy-style)))
+(with-eval-after-load 'avy
+ (add-to-list 'avy-styles-alist `(ivy-avy . ,ivy-avy-style)))
(defun ivy--avy-candidates ()
(let (candidates)
@@ -3529,8 +3529,8 @@ height < `ivy-height', auto-shrink the minibuffer."
(defvar ivy--flx-cache nil)
-(eval-after-load 'flx
- '(setq ivy--flx-cache (flx-make-string-cache)))
+(with-eval-after-load 'flx
+ (setq ivy--flx-cache (flx-make-string-cache)))
(defun ivy-toggle-case-fold ()
"Toggle `case-fold-search' for Ivy operations.