Use enh-ruby-mode for ruby shell scripts
Instead of ruby-mode
This commit is contained in:
parent
1ab9f8b99d
commit
8e748ec567
1 changed files with 2 additions and 0 deletions
|
@ -11,8 +11,10 @@
|
||||||
:mode ("\\.\\(?:pry\\|irb\\)rc\\'" . +ruby-init-h)
|
:mode ("\\.\\(?:pry\\|irb\\)rc\\'" . +ruby-init-h)
|
||||||
:mode ("\\.\\(?:rb\\|rake\\|rabl\\|ru\\|builder\\|gemspec\\|jbuilder\\|thor\\)\\'" . +ruby-init-h)
|
:mode ("\\.\\(?:rb\\|rake\\|rabl\\|ru\\|builder\\|gemspec\\|jbuilder\\|thor\\)\\'" . +ruby-init-h)
|
||||||
:mode ("/\\(?:Berks\\|Cap\\|Gem\\|Guard\\|Pod\\|Puppet\\|Rake\\|Thor\\|Vagrant\\)file\\'" . +ruby-init-h)
|
:mode ("/\\(?:Berks\\|Cap\\|Gem\\|Guard\\|Pod\\|Puppet\\|Rake\\|Thor\\|Vagrant\\)file\\'" . +ruby-init-h)
|
||||||
|
:interpreter ("j?ruby\\([0-9.]+\\)" . +ruby-init-h)
|
||||||
:preface
|
:preface
|
||||||
(after! ruby-mode
|
(after! ruby-mode
|
||||||
|
(rassq-delete-all 'ruby-mode interpreter-mode-alist)
|
||||||
(require 'enh-ruby-mode))
|
(require 'enh-ruby-mode))
|
||||||
(defun +ruby-init-h ()
|
(defun +ruby-init-h ()
|
||||||
"Enable `enh-ruby-mode' if ruby is available, otherwise `ruby-mode'."
|
"Enable `enh-ruby-mode' if ruby is available, otherwise `ruby-mode'."
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue