Remove prompts on prefix call to imalison:do-ag

The previous behavior of a call with a single C-u press (where the user
was prompted for a directory in which to perform the search and filetypes on
which to it) is now available with two C-u presses. imalison:do-ag is
now defined with a call to imalison:prefix-alternatives.
This commit is contained in:
Ivan Malison 2016-06-20 01:03:43 -07:00
parent 33839b7f25
commit 50b5ea66e0

View File

@ -1584,9 +1584,12 @@ I use helm for almost all emacs completion
("C-c p f" . imalison:projectile-find-file))
:preface
(progn
(defun imalison:do-ag (&optional arg)
(interactive "P")
(if arg (helm-do-ag) (helm-projectile-ag)))
(defun imalison:do-ag-default-directory ()
(interactive)
(helm-do-ag default-directory (car (projectile-parse-dirconfig-file))))
(imalison:prefix-alternatives imalison:do-ag helm-projectile-ag
imalison:do-ag-default-directory helm-do-ag)
(defun projectile-make-all-subdirs-projects (directory)
(cl-loop for file-info in (directory-files-and-attributes directory)