mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
lang/ruby: don't pop up console on startup
This shouldn't compromise the features that robe provides (like code completion), it only hides the REPL.
This commit is contained in:
@ -77,7 +77,8 @@ environment variables."
|
||||
(defun +ruby|init-robe ()
|
||||
(when (executable-find "ruby")
|
||||
(cl-letf (((symbol-function #'yes-or-no-p) (lambda (_) t)))
|
||||
(ignore-errors (robe-start))
|
||||
(save-window-excursion
|
||||
(ignore-errors (robe-start)))
|
||||
(when (robe-running-p)
|
||||
(add-hook 'kill-buffer-hook #'+ruby|cleanup-robe-servers nil t)))))
|
||||
(add-hook 'enh-ruby-mode-hook #'+ruby|init-robe)
|
||||
|
Reference in New Issue
Block a user