Skip to content

Commit

Permalink
Make `use-package' install packages when using package.el
Browse files Browse the repository at this point in the history
  • Loading branch information
ubolonton committed Apr 24, 2019
1 parent f93c54f commit e3e5cc7
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions init.el
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,12 @@
(ublt/package-install p))

(require 'use-package)
;; Since we have to use `:straight' `nil' for some packages when using `straight.el'.
(setq use-package-ignore-unknown-keywords t)))
(require 'use-package-ensure)
(setq
;; Since we have to use `:straight' `nil' for some packages when using `straight.el'.
use-package-ignore-unknown-keywords t
;; We don't want to declare a package twice.
use-package-always-ensure t)))
(_
(progn
(defvar bootstrap-version)
Expand All @@ -120,8 +124,9 @@
(eval-print-last-sexp)))
(load bootstrap-file nil 'nomessage))

(setq straight-use-package-by-default t)
(straight-use-package 'use-package)
;; We don't want to declare a package twice.
(setq straight-use-package-by-default t)

(dolist (p ublt/packages)
(straight-use-package p)))))
Expand Down

0 comments on commit e3e5cc7

Please sign in to comment.