all repos — archive/dotfiles @ 87fb552d62b2135fc6b11e1b073f0a901b639849

Superseded by nixfiles

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`
Alan Pearce alan@alanpearce.co.uk
Fri, 11 Jul 2014 22:43:58 +0100
commit

87fb552d62b2135fc6b11e1b073f0a901b639849

parent

43550bac2a49c8ae6dba82793216cb20a89d12b9

1 files changed, 3 insertions(+), 0 deletions(-)

jump to
M tag-emacs/emacs.d/init.eltag-emacs/emacs.d/init.el
@@ -44,6 +44,9 @@ (require 'cask)   (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)