Ack-like ToolsEmacs Interface to
This package brings the full power of ack
to emacs by allowing you to run
it seamlessly with its large set of options. Ack-like tools such as
the silver searcher
git/hg/bzr grep are well supported too.
- Keep all features of ack and more
- Handle colors using the standard library
- Completion for ack options while reading from the minibuffer
- Support the silver search (ag)
M-x package-install RET ack RET
- git grep
M-x ackand provide a pattern to search.
C-u M-x ackto search from current project root.
C-u C-u M-x ackto interactively choose a directory to search.
While reading ack command and args from the minibuffer, the following key bindings may be useful:
M-I=> insert a template for case-insensitive file name search
M-G=> insert a template for
M-Y=> grab the symbol at point from the window before entering the minibuffer
TAB=> completion for ack options
If you use the above keybindings very often, stick the corresponding
command names in
ack-minibuffer-setup-hook. The following snippet
M-x ack insert a
git|hg|bzr grep template if searching
from a project root. Then it will try to insert the symbol at point.
(add-hook 'ack-minibuffer-setup-hook 'ack-skel-vc-grep t) (add-hook 'ack-minibuffer-setup-hook 'ack-yank-symbol-at-point t)
Check out the emacs23 branch.
Phillip Lord. The original author and previous mantainer is Leo Liu.