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:
parent
33839b7f25
commit
50b5ea66e0
@ -1584,9 +1584,12 @@ I use helm for almost all emacs completion
|
|||||||
("C-c p f" . imalison:projectile-find-file))
|
("C-c p f" . imalison:projectile-find-file))
|
||||||
:preface
|
:preface
|
||||||
(progn
|
(progn
|
||||||
(defun imalison:do-ag (&optional arg)
|
(defun imalison:do-ag-default-directory ()
|
||||||
(interactive "P")
|
(interactive)
|
||||||
(if arg (helm-do-ag) (helm-projectile-ag)))
|
(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)
|
(defun projectile-make-all-subdirs-projects (directory)
|
||||||
(cl-loop for file-info in (directory-files-and-attributes directory)
|
(cl-loop for file-info in (directory-files-and-attributes directory)
|
||||||
|
Loading…
Reference in New Issue
Block a user