emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] master a8857c1 4/8: * README.rst (Usage): Mention ack-minibuffer-


From: João Távora
Subject: [elpa] master a8857c1 4/8: * README.rst (Usage): Mention ack-minibuffer-setup-hook.
Date: Fri, 15 Mar 2019 18:33:10 -0400 (EDT)

branch: master
commit a8857c1fd69bc7c1c9fbb97d3f37c470979dc954
Author: João Távora <address@hidden>
Commit: João Távora <address@hidden>

    * 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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]