Use ruby-mode when opening *.cap (capistrano)