Use ruby-mode for Rake files.