mirror of
https://github.com/dimitri/el-get.git
synced 2024-09-29 13:08:51 +08:00
added post-init code to prepare the major mode in accordance to its declared usage
This commit is contained in:
parent
7d8bcca082
commit
9c5e827acc
|
@ -2,4 +2,13 @@
|
|||
:description "Replacement for ruby-mode which uses ruby 1.9's Ripper to parse and indent. From Zenspider's repository."
|
||||
:type github
|
||||
:pkgname "zenspider/enhanced-ruby-mode"
|
||||
:features enh-ruby-mode)
|
||||
:features enh-ruby-mode
|
||||
:post-init (progn
|
||||
(autoload 'enh-ruby-mode "enh-ruby-mode" "Major mode for ruby files" t)
|
||||
(add-to-list 'interpreter-mode-alist '("ruby" . enh-ruby-mode))
|
||||
(add-to-list 'auto-mode-alist '("\\.rake$" . enh-ruby-mode))
|
||||
(add-to-list 'auto-mode-alist '("Rakefile$" . enh-ruby-mode))
|
||||
(add-to-list 'auto-mode-alist '("\\.gemspec$" . enh-ruby-mode))
|
||||
(add-to-list 'auto-mode-alist '("Gemfile$" . enh-ruby-mode))
|
||||
(add-to-list 'auto-mode-alist '("\\.rb$" . enh-ruby-mode))))
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue
Block a user