From 59cbd197a28511edf13b9876ddbd50b8c6c5a5fa Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Mon, 20 Apr 2020 18:34:23 +0200 Subject: emacs: avoid calling package-initialize in 27.x MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit GNU Emacs 27.x no longer requires the call of `package-initialize`. We can skip this call from now on. Signed-off-by: Miquel Sabaté Solà --- .emacs.d/init.org | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.emacs.d/init.org b/.emacs.d/init.org index 15ebed6..489146d 100644 --- a/.emacs.d/init.org +++ b/.emacs.d/init.org @@ -124,7 +124,9 @@ Initialize package. (add-to-list 'package-archives '("melpa-stable" . "https://stable.melpa.org/packages/") t) -(package-initialize) +;; This is no longer needed as of GNU Emacs 27.x. +(when (< emacs-major-version 27) + (package-initialize)) #+END_SRC I'm using use-package to handle my installed packages. I don't know if it's -- cgit v1.2.3