-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ignore distro site-lisp; add lsp plist setting in early-init
- Loading branch information
Showing
1 changed file
with
13 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,21 @@ | ||
;;; early-init.el --- Initialization before -*- lexical-binding: t -*- | ||
;;; early-init.el --- Initialization before init.el -*- lexical-binding: t -*- | ||
;;; Commentary: | ||
;;; Code: | ||
|
||
;; disable package.el in favor of elpaca | ||
(setq package-enable-at-startup nil) | ||
|
||
;; use plists in lsp for performance | ||
;; https://emacs-lsp.github.io/lsp-mode/page/performance/#use-plists-for-deserialization | ||
(setenv "LSP_USE_PLISTS" "true") | ||
|
||
;; do not load site-lisp | ||
(setq load-path | ||
(seq-filter | ||
(lambda (pth) (not (string-match "/usr/share/emacs/site-lisp.*" pth))) | ||
load-path)) | ||
|
||
|
||
(provide 'early-init) | ||
|
||
;;; early-init.el ends here |