Implemented a simple backtrace-mode-hook.