lang/ruby: add indent detection support

It already exists for ruby-mode, but not enh-ruby-mode. This fixes that.
This commit is contained in:
Henrik Lissner 2018-09-08 23:48:43 -04:00
parent bc092acaee
commit d73f488c11
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -21,6 +21,9 @@
(set-electric! 'enh-ruby-mode :words '("else" "end" "elsif"))
(set-repl-handler! 'enh-ruby-mode #'inf-ruby) ; `inf-ruby'
(after! dtrt-indent
;; `dtrt-indent' supports ruby-mode. Make it aware of enh-ruby-mode
(add-to-list 'dtrt-indent-hook-mapping-list '(enh-ruby-mode ruby enh-ruby-indent-level)))
;; so class and module pairs work
(setq-hook! 'enh-ruby-mode-hook sp-max-pair-length 6)