ADD ruby modes
This commit is contained in:
parent
252900c9cb
commit
e6abc6102e
18
etc/conf.org
18
etc/conf.org
|
@ -1044,12 +1044,20 @@ Note this also requires all external packages to be installed in each environeme
|
||||||
:ID: bd1723ec-daec-4c45-82c5-41430e9b02fc
|
:ID: bd1723ec-daec-4c45-82c5-41430e9b02fc
|
||||||
:END:
|
:END:
|
||||||
#+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC emacs-lisp
|
||||||
(use-package inf-ruby
|
(defun nd/init-robe-company ()
|
||||||
:straight t)
|
"Set the company backends for robe mode."
|
||||||
|
(setq-local company-backends '(company-robe)))
|
||||||
|
|
||||||
(use-package robe
|
(nd/when-bin "irb"
|
||||||
:straight t
|
:pacman "ruby-irb"
|
||||||
:hook (ruby-mode . robe))
|
(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
|
(use-package ruby-test-mode
|
||||||
:straight t)
|
:straight t)
|
||||||
|
|
Loading…
Reference in New Issue