Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
5cf8176d
Commit
5cf8176d
authored
Jun 22, 2013
by
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
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
5 deletions
+11
-5
lisp/ChangeLog
lisp/ChangeLog
+2
-0
lisp/progmodes/ruby-mode.el
lisp/progmodes/ruby-mode.el
+9
-5
No files found.
lisp/ChangeLog
View file @
5cf8176d
...
...
@@ -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>
...
...
lisp/progmodes/ruby-mode.el
View file @
5cf8176d
...
...
@@ -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"
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment