Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Search for symbol at point #8

Closed
dubiousdavid opened this issue Jul 14, 2016 · 2 comments
Closed

Search for symbol at point #8

dubiousdavid opened this issue Jul 14, 2016 · 2 comments

Comments

@dubiousdavid
Copy link

It would be great to have a function that will automatically invoke a search using the symbol at point. Currently this requires three steps: invoke ack, keystroke to copy symbol at point to minibuffer, and hit enter.

@joaotavora
Copy link
Collaborator

Here's how I do it:

(add-hook 'ack-minibuffer-setup-hook 'ack-yank-symbol-at-point t)

If you lobby strongly enough, we could make this the default, but I think adding a function to a hook is equally clean.

@joaotavora
Copy link
Collaborator

This has actually been the default since a while, though some people prefer otherwise (#12)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants