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:
parent
bc092acaee
commit
d73f488c11
1 changed files with 3 additions and 0 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue