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:
parent
287460cb05
commit
1fc43dacfc
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue