Closed kaushalmodi closed 9 years ago
This shouldn't be necessary. ag-search-finished-hook
is executed in the context of the results buffer, so you should just be able to use (current-buffer)
. Does that meet your need?
You're correct. Operations happen in the current ag buffer. Thanks.
https://github.com/kaushalmodi/.emacs.d/commit/be25ade55c519789ca19d9a3f69dea4f72232d0c
Can you please add this so that I can have a function like below in my config:
Using
ag/last-search-buffer-name
ensures that I kill only the last ag search buffer and not one of the prior open ones (if any).