mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
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:
@ -21,6 +21,9 @@
|
|||||||
(set-electric! 'enh-ruby-mode :words '("else" "end" "elsif"))
|
(set-electric! 'enh-ruby-mode :words '("else" "end" "elsif"))
|
||||||
(set-repl-handler! 'enh-ruby-mode #'inf-ruby) ; `inf-ruby'
|
(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
|
;; so class and module pairs work
|
||||||
(setq-hook! 'enh-ruby-mode-hook sp-max-pair-length 6)
|
(setq-hook! 'enh-ruby-mode-hook sp-max-pair-length 6)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user