Skip to content

Instantly share code, notes, and snippets.

@tobias
Created May 28, 2010 13:36
Show Gist options
  • Save tobias/417151 to your computer and use it in GitHub Desktop.
Save tobias/417151 to your computer and use it in GitHub Desktop.
(defun open-trace-and-file (tracefile file linenum)
"Open visit TRACEFILE in one window (in compilation mode), and visit FILE at LINENUM in another"
(find-file-other-window tracefile)
(compilation-mode)
(goto-line 2)
(find-file-other-window file)
(goto-line linenum))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment