mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
lang/ruby: show messages when robe throws errors
This commit is contained in:
@ -58,7 +58,8 @@
|
|||||||
(when (executable-find "ruby")
|
(when (executable-find "ruby")
|
||||||
(cl-letf (((symbol-function #'yes-or-no-p) (lambda (_) t)))
|
(cl-letf (((symbol-function #'yes-or-no-p) (lambda (_) t)))
|
||||||
(save-window-excursion
|
(save-window-excursion
|
||||||
(ignore-errors (robe-start)))
|
(with-demoted-errors "ROBE ERROR: %s"
|
||||||
|
(robe-start)))
|
||||||
(when (robe-running-p)
|
(when (robe-running-p)
|
||||||
(add-hook 'kill-buffer-hook #'+ruby|cleanup-robe-servers nil t)))))
|
(add-hook 'kill-buffer-hook #'+ruby|cleanup-robe-servers nil t)))))
|
||||||
(add-hook 'enh-ruby-mode-hook #'+ruby|init-robe)
|
(add-hook 'enh-ruby-mode-hook #'+ruby|init-robe)
|
||||||
|
Reference in New Issue
Block a user