Skip to content

Commit 3c15f98

Browse files
authored
Merge pull request #198 from eecs280staff/emacs-package-manager
Emacs package manager bootstrapping nits
2 parents 153f817 + 98f19d9 commit 3c15f98

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/setup_emacs.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -199,19 +199,19 @@ Here are a few basic customizations that you might like. Paste with `C-y`.
199199
Set up [`use-package`](https://github.com/jwiegley/use-package), which automates package installation and configuration.
200200

201201
```elisp
202-
;; Configure built in package manager
202+
;; Configure built-in package manager
203203
(require 'package)
204-
(package-initialize)
205204
(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/"))
206205
(add-to-list 'package-archives '("gnu" . "https://elpa.gnu.org/packages/"))
206+
(package-initialize)
207207
208-
;; Install use-package
209-
;; https://github.com/jwiegley/use-package
210-
(when (not (package-installed-p 'use-package))
208+
;; Install and configure use-package
209+
(unless (package-installed-p 'use-package)
211210
(package-refresh-contents)
212211
(package-install 'use-package))
213212
(eval-when-compile
214213
(require 'use-package))
214+
(setq use-package-always-defer t) ; Globally defer package loading
215215
```
216216

217217
### Undo/redo

0 commit comments

Comments
 (0)