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:
Henrik Lissner 2020-05-11 00:16:17 -04:00
parent 037345cfd9
commit 6c01d1a5ac
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -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