Emacs: Increase gc-cons-threshold for LSP.
This commit is contained in:
parent
6da1664441
commit
1aee4e4ed4
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue
Block a user