added post-init code to prepare the major mode in accordance to its declared usage

This commit is contained in:
Daniel Szmulewicz 2013-02-18 23:02:30 +02:00
parent 7d8bcca082
commit 9c5e827acc

View File

@ -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))))
)