aboutsummaryrefslogtreecommitdiff
path: root/.emacs.d/lisp/init-package.el
blob: bad2d231113e44cb30fe630f025e9e8b7f238c41 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
(require 'package)
(setq package-archives '(("gnu" . "https://elpa.gnu.org/packages/")
                         ("mepla" . "https://melpa.org/packages/")
                         ("melpa-stable" . "https://stable.melpa.org/packages/")))
(package-initialize)

(dolist (package '(use-package))
  (unless (package-installed-p package)
    (package-refresh-contents)
    (package-install package)))
(require 'use-package)
(setq use-package-always-ensure t)

(use-package auto-package-update
  :ensure t
  :commands (auto-package-update-now)
  :config
  (setq auto-package-update-delete-old-versions t
	auto-package-update-hide-results t))
  

(provide 'init-package)