Emacs: Increase gc-cons-threshold for LSP.

This commit is contained in:
tastytea 2020-12-03 21:43:43 +01:00
parent 6da1664441
commit 1aee4e4ed4
1 changed files with 4 additions and 4 deletions

View File

@ -1,6 +1,6 @@
;;; global-variables.el --- Set some global variables. -*- lexical-binding: t; -*-
;; Time-stamp: <2020-11-18T18:37:57+0100>
;; Time-stamp: <2020-12-03T08:37:05+0100>
;;; Commentary:
;; * Banish customizations.
@ -40,11 +40,11 @@
'("~/.authinfo.gpg" "~/.authinfo" "~/.netrc"))
(auth-source-gpg-encrypt-to ; Encrypt to these users.
(cons (symbol-value 'user-mail-address) '()))
(what-cursor-show-names t))
(what-cursor-show-names t)
(read-process-output-max (* 1024 1024)) ; LSP needs this.
(gc-cons-threshold (* 800000 2))) ; LSP needs this.
:config (progn
;; read more data per chunk. LSP responses are large.
(setq read-process-output-max (* 1024 1024))
(defalias 'yes-or-no-p 'y-or-n-p) ; Just type y/n instead of yes/no.
(savehist-mode t) ; Save minibuffer history.
(global-auto-revert-mode t) ; Auto-revert file if changed on disk.