aboutsummaryrefslogtreecommitdiff
path: root/.emacs.d/lisp/init-package.el
diff options
context:
space:
mode:
Diffstat (limited to '.emacs.d/lisp/init-package.el')
-rw-r--r--.emacs.d/lisp/init-package.el14
1 files changed, 14 insertions, 0 deletions
diff --git a/.emacs.d/lisp/init-package.el b/.emacs.d/lisp/init-package.el
new file mode 100644
index 0000000..5e6a0c7
--- /dev/null
+++ b/.emacs.d/lisp/init-package.el
@@ -0,0 +1,14 @@
+(require 'package)
+(setq package-archives '(("gnu" . "https://elpa.gnu.org/packages/")
+ ("melpa" . "https://melpa.org/packages/")))
+(setq package-enable-at-startup nil)
+(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)
+
+(provide 'init-package)