Support ag.el

See https://github.com/Wilfred/ag.el/issues/82 and https://github.com/Wilfred/ag.el/pull/83.