From cabc040aeaff1940409033a0c7c1c0ee27ab6107 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Thu, 8 Nov 2012 17:37:34 +0100 Subject: [PATCH] Add Rakefile in auto-mode-list for ruby-mode * progmodes/ruby-mode.el (auto-mode-alist): Add Rakefile in `auto-mode-alist' (Bug#12835). --- lisp/ChangeLog | 5 +++++ lisp/progmodes/ruby-mode.el | 2 ++ 2 files changed, 7 insertions(+) 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")) -- 2.39.2