]> code.delx.au - gnu-emacs-elpa/blobdiff - counsel.el
counsel.el (counsel-expression-history): Add docstring
[gnu-emacs-elpa] / counsel.el
index e0b421d5afe1462f570a4117b6d3fdc253f3c564..6a657b7f48abd40a7e9eb0b42d1817ec67e29a0f 100644 (file)
@@ -1383,7 +1383,7 @@ This uses `counsel-ag' with `counsel-pt-base-command' replacing
     (call-interactively 'counsel-ag)))
 
 ;;** `counsel-grep'
-(defcustom counsel-grep-base-command "grep -nE --ignore-case \"%s\" %s"
+(defcustom counsel-grep-base-command "grep -nE \"%s\" %s"
   "Format string to use in `cousel-grep-function' to construct
 the command."
   :type 'string
@@ -1872,9 +1872,13 @@ An extra action allows to switch to the process buffer."
 ;;** `counsel-expression-history'
 ;;;###autoload
 (defun counsel-expression-history ()
+  "Select an element of `read-expression-history'.
+And insert it into the minibuffer. Useful during
+`eval-expression'"
   (interactive)
-  (ivy-read "Expr: " (delete-dups read-expression-history)
-            :action #'insert))
+  (let ((enable-recursive-minibuffers t))
+    (ivy-read "Expr: " (delete-dups read-expression-history)
+              :action #'insert)))
 
 ;;* Misc OS
 ;;** `counsel-rhythmbox'