ag-and-a-half.el provides a simple compilation mode for the silver searcher ag
Add the following to your .emacs:
(add-to-list 'load-path "/path/to/ag-and-a-half")
(require 'ag-and-a-half)
;; Create shorter aliases
(defalias 'ag 'ag-and-a-half)
This will load the ag-and-a-half
functions, and create shorter
aliases for them.
(defalias 'ag-same 'ag-and-a-half-same)
(defalias 'ag-find-file 'ag-and-a-half-find-file)
(defalias 'ag-find-file-same 'ag-and-a-half-find-file-same)
I haven't tried these. Use at your own risk!
ag-and-a-half was haphazardly hacked up from ack-and-a-half. I only ever used the main ack-and-a-half function, so I quickly ported it to ag (mainly through find and replace).