From 4d270537083987364073777584132b7a099737bf Mon Sep 17 00:00:00 2001 From: Chong Yidong Date: Mon, 19 Jan 2009 16:58:34 +0000 Subject: [PATCH] Autoload other interpreter names. --- lisp/progmodes/ruby-mode.el | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/lisp/progmodes/ruby-mode.el b/lisp/progmodes/ruby-mode.el index 9ca01d57cf0..d9718e6252f 100644 --- a/lisp/progmodes/ruby-mode.el +++ b/lisp/progmodes/ruby-mode.el @@ -1422,11 +1422,8 @@ The variable `ruby-indent-level' controls the amount of indentation. (add-to-list 'auto-mode-alist '("\\.rb\\'" . ruby-mode)) ;;;###autoload -(add-to-list 'interpreter-mode-alist '("ruby" . ruby-mode)) -(add-to-list 'interpreter-mode-alist '("rbx" . ruby-mode)) -(add-to-list 'interpreter-mode-alist '("jruby" . ruby-mode)) -(add-to-list 'interpreter-mode-alist '("ruby1.9" . ruby-mode)) -(add-to-list 'interpreter-mode-alist '("ruby1.8" . ruby-mode)) +(dolist (name (list "ruby" "rbx" "jruby" "ruby1.9" "ruby1.8")) + (add-to-list 'interpreter-mode-alist (cons name 'ruby-mode))) (provide 'ruby-mode) -- 2.39.2