Skip to content

Commit

Permalink
Ignore distro site-lisp; add lsp plist setting in early-init
Browse files Browse the repository at this point in the history
  • Loading branch information
regob committed Oct 16, 2024
1 parent bba5420 commit 4e817ff
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion early-init.el
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

0 comments on commit 4e817ff

Please sign in to comment.