ADD ruby modes

This commit is contained in:
Nathan Dwarshuis 2021-03-21 11:31:17 -04:00
parent 252900c9cb
commit e6abc6102e
1 changed files with 13 additions and 5 deletions

View File

@ -1044,12 +1044,20 @@ Note this also requires all external packages to be installed in each environeme
:ID: bd1723ec-daec-4c45-82c5-41430e9b02fc
:END:
#+BEGIN_SRC emacs-lisp
(use-package inf-ruby
:straight t)
(defun nd/init-robe-company ()
"Set the company backends for robe mode."
(setq-local company-backends '(company-robe)))
(use-package robe
:straight t
:hook (ruby-mode . robe))
(nd/when-bin "irb"
:pacman "ruby-irb"
(use-package inf-ruby
:straight t
:hook (ruby-mode . inf-ruby-minor-mode))
(use-package robe
:straight t
:hook ((ruby-mode . robe-mode)
(roby-mode . nd/init-robe-company))))
(use-package ruby-test-mode
:straight t)