Is it possible to make the occur
mode grab the cursor (point)
?, right now when I do M-x occur
and search anything in a buffer, it will open the new buffer with the findings but the cursor stays in the buffer instead going to the findings.
I have to do C-x 0
to go to the other buffer every time I do a search.
I tried doing it with a blank init.el
just in case is helm
or some other package, but I haven't been able to make it focus the cursor on the new buffer.
(I know that there's the helm-occur
that does that, but is it possible with any command or function to make the cursor change to the active buffer when that command opens a new buffer? )
M-g M-n
andM-g M-p
bindings to jump to each occurrence of your search term without jumping to the *Occur* buffer. I learnt that trick from here.