summaryrefslogtreecommitdiff
path: root/.emacs
diff options
context:
space:
mode:
Diffstat (limited to '.emacs')
-rw-r--r--.emacs8
1 files changed, 5 insertions, 3 deletions
diff --git a/.emacs b/.emacs
index b7a9eb4..ab0e3e1 100644
--- a/.emacs
+++ b/.emacs
@@ -7,9 +7,11 @@
;; resets global-page-break-lines-mode to nil. Cue Custom shrugging,
;; "changed outside Customize".
-(require 'package)
-(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/"))
-(package-initialize)
+;; NB: starting from Emacs 27, package-initialize is automatically
+;; called before loading the user's init file, unless
+;; package-enable-at-startup is set to nil in the early init file.
+(when (version< emacs-version "27")
+ (package-initialize))
(setq custom-file "~/.emacs-custom.el")
(load custom-file)