branch: master
commit 39eb7ed062f5fc9a81a7a680ba143ad32abfcd62
Author: Oleh Krehel <[email protected]>
Commit: Oleh Krehel <[email protected]>
counsel.el (counsel-M-x): Call smex-initialize
Otherwise, smex-cache isn't defined.
---
counsel.el | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/counsel.el b/counsel.el
index 5717b21..a2657b9 100644
--- a/counsel.el
+++ b/counsel.el
@@ -518,6 +518,8 @@ Optional INITIAL-INPUT is the initial input in the
minibuffer."
(when (or (featurep 'smex)
(package-installed-p 'smex))
(require 'smex)
+ (unless smex-initialized-p
+ (smex-initialize))
(smex-detect-new-commands)
(smex-update)
(setq cands smex-ido-cache)