mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
Increase read-process-output-max for robe-mode
It appears robe, like LSP, is very chatty, which can slow down Emacs.
This commit is contained in:
@ -50,6 +50,11 @@
|
|||||||
(set-lookup-handlers! 'ruby-mode
|
(set-lookup-handlers! 'ruby-mode
|
||||||
:definition #'robe-jump
|
:definition #'robe-jump
|
||||||
:documentation #'robe-doc)
|
:documentation #'robe-doc)
|
||||||
|
(when (boundp 'read-process-output-max)
|
||||||
|
;; Robe can over saturate IPC, making interacting with it slow/clobbering
|
||||||
|
;; the GC, so increase the amount of data Emacs reads from it at a time.
|
||||||
|
(setq-hook! '(robe-mode-hook inf-ruby-mode-hook)
|
||||||
|
read-process-output-max (* 1024 1024)))
|
||||||
(when (featurep! :editor evil)
|
(when (featurep! :editor evil)
|
||||||
(add-hook 'robe-mode-hook #'evil-normalize-keymaps))
|
(add-hook 'robe-mode-hook #'evil-normalize-keymaps))
|
||||||
(map! :localleader
|
(map! :localleader
|
||||||
|
Reference in New Issue
Block a user