emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] master a287f39 84/90: counsel.el (counsel-git-grep-history): New


From: Oleh Krehel
Subject: [elpa] master a287f39 84/90: counsel.el (counsel-git-grep-history): New defvar
Date: Tue, 30 Jun 2015 07:29:33 +0000

branch: master
commit a287f395def4ddc9ec51166c85082e7aa2edc566
Author: Oleh Krehel <address@hidden>
Commit: Oleh Krehel <address@hidden>

    counsel.el (counsel-git-grep-history): New defvar
    
    * counsel.el (counsel-git-grep): Use `counsel-git-grep-history'.
---
 counsel.el |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/counsel.el b/counsel.el
index 03cf94c..7cbe9e7 100644
--- a/counsel.el
+++ b/counsel.el
@@ -254,6 +254,9 @@
         (swiper--cleanup)
         (swiper--add-overlays (ivy--regex ivy-text))))))
 
+(defvar counsel-git-grep-history nil
+  "History for `counsel-git-grep'.")
+
 ;;;###autoload
 (defun counsel-git-grep (&optional initial-input)
   "Grep for a string in the current git repository."
@@ -270,7 +273,8 @@
                                     'counsel-git-grep-function)
               :keymap counsel-git-grep-map
               :action #'counsel-git-grep-action
-              :unwind #'swiper--cleanup)))
+              :unwind #'swiper--cleanup
+              :history 'counsel-git-grep-history)))
 
 (defcustom counsel-find-file-at-point nil
   "When non-nil, add file-at-point to the list of candidates."



reply via email to

[Prev in Thread] Current Thread [Next in Thread]