summary refs log tree commit diff
path: root/configs
diff options
context:
space:
mode:
authorFranck Cuny <franck.cuny@gmail.com>2018-08-11 15:55:27 -0700
committerFranck Cuny <franck.cuny@gmail.com>2018-08-11 15:55:27 -0700
commit3bd21c7dc44fd841aa890b2856525656f05777a5 (patch)
treed7b671767bc11393d02830f8fa2bcf7aef03aa24 /configs
parentShuffling things around in this repo (diff)
downloademacs.d-3bd21c7dc44fd841aa890b2856525656f05777a5.tar.gz
[emacs] ensure use-package is installed.
This is needed to bootstrap a new installation.
Diffstat (limited to '')
-rw-r--r--configs/rcs/emacs.d/init.el5
1 files changed, 5 insertions, 0 deletions
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)