Make package-user-dir relative to Prelude

This makes the entire Prelude configuration portable, meaning it's easier to try
out in different Emacs enviroments.
This commit is contained in:
Bradley Wright 2012-11-30 22:29:33 +00:00
parent bfba8f79e1
commit 067aad7510

View file

@ -36,6 +36,8 @@
(require 'package) (require 'package)
(add-to-list 'package-archives (add-to-list 'package-archives
'("melpa" . "http://melpa.milkbox.net/packages/") t) '("melpa" . "http://melpa.milkbox.net/packages/") t)
;; set package-user-dir to be relative to Prelude install path
(setq package-user-dir (expand-file-name "elpa" prelude-dir))
(package-initialize) (package-initialize)
;; required because of a package.el bug ;; required because of a package.el bug