title: EMACS find-grep command switching windows
body: <p>I have the following in my .emacs</p>
  
  <pre><code>(defun find-in-workspace(term)
    (interactive "sSearchInWorkspace: \n")
    (grep-find (concat "grep -rnH --include=\*.{c,cpp,h} --include=-e '" term "' /home/workspaces/*")))
  </code></pre>
  
  <p>which is just a wrapper around grep-find so that it can search all the files in my workspace.  </p>
  
  <p>My problem is with the <em>grep</em> buffer.  I would like to keep my cursor in the <em>grep</em> buffer's window when I select items from it so that I can quickly browse through the code, but selecting a line will automatically moves my cursor to the other window, which adds up in keystrokes when I have a list of over 5 items. Is there anyway I can build this functionality into this function, or change a setting for grep-find? I've been searching but haven't found a solution.</p>