I want to bind the emacs multi-occur command to a key so that it searches a specific named buffer, e.g compilation. How do I go about this in my .emacs?
I can do
(global-set-key "\C-ho" 'multi-occur)
But that requires entering the buffer names to search. I want to just be able to press a key, enter the search text, and it only looks in the predefined buffer.
I'm an emacs ignoramus, so all help appreciated.