🕷 zenspider.com

by ryan davis

Looking for the Ruby Quickref?

autotest bindings

Published 2007-03-06 @ 14:44

Tagged emacs, zentest

I should add that I keep the previous autotest code in autotest.el and the following in my setup-modes.el (I have my emacs setup broken up):

  (autoload 'autotest-switch "autotest" "doco" t)
  (autoload 'autotest "autotest" "doco" t)
  (add-hook 'ruby-mode-hook
            '(lambda ()
               (define-key ruby-mode-map (kbd "C-c C-a") 'autotest-switch))

This allows me to use C-c C-a to toggle back and forth between autotest and ruby files. I should also have it hooked in for grep buffers and other things, but I’ll leave that as an exercise for the reader. :P