When Rails prints a backtrace in HTML, it’s helpfully rendered as a “txmt:” link so that users can click open the corresponding location in TextMate on OS X. If you’re an Emacs user, here’s how to make those URLs open in Emacs instead.
First, get a copy of Daisuke Murase’s emacs-handler project using git or by downloading a tarball.
Then apply the following patch:
1 2 3 4 5 6 7 8 9 10 11 12
Alternatively, you can just check out my clone of emacs-handler, which has the above patch built-in.
Finally, open the project in Xcode, and build it. Fire up the
EmacsHandler.app, and edit the app’s preferences to point to
That should be all you need to do – just keep
somewhere on your Mac.