branch: master commit a8857c1fd69bc7c1c9fbb97d3f37c470979dc954 Author: João Távora <joaotav...@gmail.com> Commit: João Távora <joaotav...@gmail.com>
* README.rst (Usage): Mention ack-minibuffer-setup-hook. --- README.rst | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/README.rst b/README.rst index 9d4e14f..3a8c1f5 100644 --- a/README.rst +++ b/README.rst @@ -58,6 +58,16 @@ key bindings may be useful: 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 +makes ``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. + +.. code-block:: lisp + (add-hook 'ack-minibuffer-setup-hook 'ack-skel-vc-grep t) + (add-hook 'ack-minibuffer-setup-hook 'ack-yank-symbol-at-point t) + + Emacs23 ------- @@ -71,4 +81,4 @@ https://github.com/leoliu/ack-el/issues Contributors ------------ -Phillip Lord +Phillip Lord. The original author and previous mantainer is Leo Liu.