Ruby-mode improvements

This commit is contained in:
Jeremy Dormitzer 2024-04-15 10:15:59 -04:00
parent 79788d4ec0
commit 03caf4256f

View File

@ -1,12 +1,26 @@
;; -*- lexical-binding: t; -*-
(use-package ruby-mode
:straight (:type built-in)
:mode (("\\.rb\\'" . ruby-mode)
("\\.rake\\'" . ruby-mode)
("\\.gemspec\\'" . ruby-mode)
("\\.ru\\'" . ruby-mode)
("\\.arb\\'" . ruby-mode)
("Rakefile\\'" . ruby-mode)
("Gemfile\\'" . ruby-mode)
("Guardfile\\'" . ruby-mode)
("Capfile\\'" . ruby-mode)
("Vagrantfile\\'" . ruby-mode))
:hook (ruby-mode . highlight-indent-guides-mode))
(use-package inf-ruby
:commands (inf-ruby inf-ruby-console-auto))
:commands (inf-ruby inf-ruby-console-auto)
:general
([remap inf-ruby] #'inf-ruby-console-auto))
(use-package rbenv
:hook (after-init . global-rbenv-mode))
:hook (after-init . global-rbenv-mode)
:custom
(rbenv-show-active-ruby-in-modeline nil))
(provide 'init-ruby)