summaryrefslogtreecommitdiff
path: root/emacs
diff options
context:
space:
mode:
authorGrégoire Duchêne <gduchene@awhk.org>2023-09-10 18:34:52 +0100
committerGrégoire Duchêne <gduchene@awhk.org>2023-09-10 18:34:52 +0100
commit81235616832ab44563e6c504e284afcf242c0c1f (patch)
treea10231c56b663d06266ac61fec266ac955a68096 /emacs
parent7989673570a5a48ce57f6e3c60d004699f3519c9 (diff)
emacs: Move package configuration to early-init.el
Diffstat (limited to 'emacs')
-rw-r--r--emacs/early-init.el4
-rw-r--r--emacs/init.el16
2 files changed, 4 insertions, 16 deletions
diff --git a/emacs/early-init.el b/emacs/early-init.el
index a4f99c7..f566d8f 100644
--- a/emacs/early-init.el
+++ b/emacs/early-init.el
@@ -21,6 +21,10 @@ directories."
(top . 0.3) (width . 160))
gc-cons-threshold (* 50 1024 1024))
+(setopt package-archives '(("GNU ELPA" . "https://elpa.gnu.org/packages/")
+ ("MELPA" . "https://melpa.org/packages/"))
+ package-user-dir (my/data-file-name "elpa"))
+
;; Further Early Customization
diff --git a/emacs/init.el b/emacs/init.el
index 26086af..d48c93e 100644
--- a/emacs/init.el
+++ b/emacs/init.el
@@ -7,22 +7,6 @@
transient-history-file (my/cache-file-name "transient/history.el"))
-;; Package Management
-
-(setq package-archives '(("GNU ELPA" . "https://elpa.gnu.org/packages/")
- ("MELPA" . "https://melpa.org/packages/"))
- package-user-dir (my/data-file-name "elpa"))
-
-(my/load-file "emacs/package-list")
-(my/load-file-variations "emacs/package-list")
-
-(unless (file-directory-p package-user-dir)
- (package-refresh-contents)
- (package-install-selected-packages))
-
-(package-initialize)
-
-
;; General Configuration
(setq-default indent-tabs-mode nil