dotfiles/emacs/.emacs.d/config/init-ruby.el

27 lines
763 B
EmacsLisp

;; -*- 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)
:general
([remap inf-ruby] #'inf-ruby-console-auto))
(use-package rbenv
:hook (after-init . global-rbenv-mode)
:custom
(rbenv-show-active-ruby-in-modeline nil))
(provide 'init-ruby)