about summary refs log tree commit diff
path: root/configs/shared/emacs/.emacs.d/wpc/packages/wpc-package.el
diff options
context:
space:
mode:
authorWilliam Carroll <wpcarro@gmail.com>2019-03-11T23·04+0000
committerWilliam Carroll <wpcarro@gmail.com>2019-03-11T23·08+0000
commit44e46bbce2bd94ff6c9379152696619186ae248d (patch)
tree32154c9e80ad33008ecb2011c9b1158d5bd8236d /configs/shared/emacs/.emacs.d/wpc/packages/wpc-package.el
parenta5512fd7063908814376cb6689eb7dac8f284e76 (diff)
Fix Emacs installation
My Emacs installation would fail on new machines because:

* use-package
* evil
* paredit

use-package is needed to install everything else.

evil and paredit were required in functions.el and other places before they were
called like (use-package evil ...). This should improve things but not fix the
entire issue.
Diffstat (limited to 'configs/shared/emacs/.emacs.d/wpc/packages/wpc-package.el')
-rw-r--r--configs/shared/emacs/.emacs.d/wpc/packages/wpc-package.el6
1 files changed, 5 insertions, 1 deletions
diff --git a/configs/shared/emacs/.emacs.d/wpc/packages/wpc-package.el b/configs/shared/emacs/.emacs.d/wpc/packages/wpc-package.el
index 4713dffd8486..6f43330ecb1a 100644
--- a/configs/shared/emacs/.emacs.d/wpc/packages/wpc-package.el
+++ b/configs/shared/emacs/.emacs.d/wpc/packages/wpc-package.el
@@ -11,7 +11,11 @@
 (add-to-list 'package-archives '("melpa" . "http://melpa.org/packages/"))
 (package-initialize)
 
-(require 'use-package)
+(unless (package-installed-p 'use-package)
+  (package-refresh-contents)
+  (package-install 'use-package))
+(eval-when-compile
+  (require 'use-package))
 (setq use-package-always-ensure t)
 (use-package general)