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:
parent
037345cfd9
commit
6c01d1a5ac
1 changed files with 5 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue