summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2014-07-11 22:43:58 +0100
committerAlan Pearce2014-07-11 22:43:58 +0100
commit87fb552d62b2135fc6b11e1b073f0a901b639849 (patch)
tree7aadf416b59ab572b8842da74e5b65528b5a4378
parent43550bac2a49c8ae6dba82793216cb20a89d12b9 (diff)
downloadnixfiles-87fb552d62b2135fc6b11e1b073f0a901b639849.tar.lz
nixfiles-87fb552d62b2135fc6b11e1b073f0a901b639849.tar.zst
nixfiles-87fb552d62b2135fc6b11e1b073f0a901b639849.zip
Emacs: Auto-install req-package if neeeded
init.el is now self-bootstrapping, which is useful on OSX when the Emacs
application doesn't supply an `emacs` binary for `cask`
-rw-r--r--tag-emacs/emacs.d/init.el3
1 files changed, 3 insertions, 0 deletions
diff --git a/tag-emacs/emacs.d/init.el b/tag-emacs/emacs.d/init.el
index 3d80c712..b14fd021 100644
--- a/tag-emacs/emacs.d/init.el
+++ b/tag-emacs/emacs.d/init.el
@@ -44,6 +44,9 @@
   (cask-initialize))
 
 (setq use-package-verbose t)
+(unless (package-installed-p 'req-package)
+  (package-refresh-contents)
+  (package-install 'req-package))
 (require 'req-package)
 (req-package pallet)