From: Julien Danjou Date: Thu, 8 Nov 2012 16:37:34 +0000 (+0100) Subject: Add Rakefile in auto-mode-list for ruby-mode X-Git-Tag: emacs-24.3.90~173^2~18^2~166 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=cabc040aeaff1940409033a0c7c1c0ee27ab6107;p=emacs.git Add Rakefile in auto-mode-list for ruby-mode * progmodes/ruby-mode.el (auto-mode-alist): Add Rakefile in `auto-mode-alist' (Bug#12835). --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 10cfc97e41f..e820dd5ce7f 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2012-11-08 Julien Danjou + + * progmodes/ruby-mode.el (auto-mode-alist): Add Rakefile in + `auto-mode-alist' (Bug#12835). + 2012-11-08 Stefan Monnier * progmodes/perl-mode.el (perl-prettify-symbols): New defcustom. diff --git a/lisp/progmodes/ruby-mode.el b/lisp/progmodes/ruby-mode.el index 84cf7308d75..c9bfcefb748 100644 --- a/lisp/progmodes/ruby-mode.el +++ b/lisp/progmodes/ruby-mode.el @@ -1638,6 +1638,8 @@ The variable `ruby-indent-level' controls the amount of indentation. ;;;###autoload (add-to-list 'auto-mode-alist (cons (purecopy "\\.rb\\'") 'ruby-mode)) +;;;###autoload +(add-to-list 'auto-mode-alist '("Rakefile\\'" . ruby-mode)) ;;;###autoload (dolist (name (list "ruby" "rbx" "jruby" "ruby1.9" "ruby1.8"))