branch: master
commit e5036880f1ec2f0efe1c117e2e6bda4ae87b6b71
Author: Oleh Krehel <[email protected]>
Commit: Oleh Krehel <[email protected]>
counsel.el (counsel-find-file): Use `file-name-history'
* counsel.el (package-installed-p): Declare.
---
counsel.el | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/counsel.el b/counsel.el
index 7cbe9e7..c2d67d6 100644
--- a/counsel.el
+++ b/counsel.el
@@ -294,7 +294,9 @@
(find-file (expand-file-name x ivy--directory)))
:preselect (when counsel-find-file-at-point
(require 'ffap)
- (ffap-guesser))))
+ (ffap-guesser))
+ :require-match 'confirm-after-completion
+ :history 'file-name-history))
(defcustom counsel-find-file-ignore-regexp nil
"A regexp of files to ignore while in `counsel-find-file'.
@@ -511,6 +513,7 @@ CMD is a command name."
(declare-function smex-detect-new-commands "ext:smex")
(declare-function smex-update "ext:smex")
(declare-function smex-rank "ext:smex")
+(declare-function package-installed-p "package")
;;;###autoload
(defun counsel-M-x (&optional initial-input)