"Clickable" error pages in development mode

When I use merb or if I get an exception in Passenger, the page that is render has links for each of the source lines. These links I can click and it puts me into textmate. I have a hook so it puts me into emacs.

Is there a way to get the regular development mode exception handling to do the same thing?

Thanks, pedz