Skip to content

Clojure jump to file

marick edited this page Jun 22, 2011 · 6 revisions

clojure-jump-to-file lets you put your cursor on a line that contains a filename/line-number, press a single keystroke, and jump to that line in that file.

Video

The magic keypress is C-h j.

Because the JVM only tells you the filename of an error - not the path - you have to give Emacs a root of a directory tree to search for matching filenames. The first time you type the magic keypress, you'll be prompted. If you want to change the root thereafter, use M-x midje-root.

To use clojure-jump-to-file, put the contents of the download somewhere where your emacs can find it. Or, if you use el-get, just add midje-mode to your el-get-sources. Then add this to your .emacs file:

 (require 'clojure-jump-to-file)
Clone this wiki locally