Commit 5cf8176d authored by Dmitry Gutov's avatar Dmitry Gutov
Browse files

* lisp/progmodes/ruby-mode.el (auto-mode-alist): Consolidate different

entries into one regexp and add more *file-s.
parent 73eab938
......@@ -3,6 +3,8 @@
* progmodes/ruby-mode.el (ruby-font-lock-keywords): Highlight
keyword-like methods on Kernel and Module with
font-lock-builtin-face.
(auto-mode-alist): Consolidate different entries into one regexp
and add more *file-s.
2013-06-21 Stephen Berman <stephen.berman@gmx.net>
......
......@@ -1867,11 +1867,15 @@ The variable `ruby-indent-level' controls the amount of indentation.
;;; Invoke ruby-mode when appropriate
;;;###autoload
(add-to-list 'auto-mode-alist (cons (purecopy "\\.rb\\'") 'ruby-mode))
;;;###autoload
(add-to-list 'auto-mode-alist (cons (purecopy "Rakefile\\'") 'ruby-mode))
;;;###autoload
(add-to-list 'auto-mode-alist (cons (purecopy "\\.gemspec\\'") 'ruby-mode))
(add-to-list 'auto-mode-alist
(cons (purecopy (concat "\\(?:\\."
(regexp-opt '("rb" "ru" "rake" "thor"
"jbuilder" "gemspec"))
"\\|/"
(regexp-opt '("Gemfile" "Rakefile"
"Capfile" "Thorfile"
"Vagrantfile"))
"\\)\\'")) 'ruby-mode))
;;;###autoload
(dolist (name (list "ruby" "rbx" "jruby" "ruby1.9" "ruby1.8"))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment