Autotest.add_hook :initialize do |at| # Ignore the ._* files TextMate likes to leave about. at.add_exception(/\/\._[^\/]*$/) %w{ .git .svn svn-commit .DS_Store .autotest Rakefile Capfile README doc spec/spec.opts spec/rcov.opts }.each { |exception| at.add_exception( exception ) } at.find_directories = [ 'lib', 'spec' ] end