From 3bd21c7dc44fd841aa890b2856525656f05777a5 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Sat, 11 Aug 2018 15:55:27 -0700 Subject: [emacs] ensure use-package is installed. This is needed to bootstrap a new installation. --- configs/rcs/emacs.d/init.el | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/configs/rcs/emacs.d/init.el b/configs/rcs/emacs.d/init.el index 57a433b..757a45e 100644 --- a/configs/rcs/emacs.d/init.el +++ b/configs/rcs/emacs.d/init.el @@ -14,6 +14,11 @@ ;; initialize it (package-initialize) +;; if use-package is not present, we install it +(unless (package-installed-p 'use-package) + (package-refresh-contents) + (package-install 'use-package)) + (defun fcuny/init-load-path () "Load custom configurations." (let* ((before load-path) -- cgit 1.4.1