diff options
| author | Miquel Sabaté Solà <msabate@suse.com> | 2020-04-20 18:34:23 +0200 |
|---|---|---|
| committer | Miquel Sabaté Solà <msabate@suse.com> | 2020-04-20 18:51:19 +0200 |
| commit | 59cbd197a28511edf13b9876ddbd50b8c6c5a5fa (patch) | |
| tree | 565bf6a15cbde05319345d3f8160e02d3945e9ca /.emacs.d/init.org | |
| parent | 082532f2b4f78c7f682a2baec17b64b257f0d5b2 (diff) | |
| download | dotfiles-59cbd197a28511edf13b9876ddbd50b8c6c5a5fa.tar.gz dotfiles-59cbd197a28511edf13b9876ddbd50b8c6c5a5fa.zip | |
emacs: avoid calling package-initialize in 27.x
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à <msabate@suse.com>
Diffstat (limited to '.emacs.d/init.org')
| -rw-r--r-- | .emacs.d/init.org | 4 |
1 files changed, 3 insertions, 1 deletions
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 |
