summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--emacs.d/config/config-env.el8
-rw-r--r--emacs.d/config/config-package.el7
-rw-r--r--emacs.d/init.el2
3 files changed, 11 insertions, 6 deletions
diff --git a/emacs.d/config/config-env.el b/emacs.d/config/config-env.el
index a7ea4f5..c945e0b 100644
--- a/emacs.d/config/config-env.el
+++ b/emacs.d/config/config-env.el
@@ -19,6 +19,12 @@
 
 (defvar fcuny-path-puppet-linter-gcp (expand-file-name "gcp-puppet-manifests/.puppet-lint-rc"
                                                        fcuny-path-git-twitter)
-  "Path to the linkter's configucation for gcp-puppet-manifests")
+  "Path to the linkter's configucation for gcp-puppet-manifests.")
+
+(defvar fcuny-path-emacs-var (expand-file-name "var" user-emacs-directory)
+  "Path to some files for Emacs.")
+
+(defvar fcuny-path-emacs-elpa (expand-file-name "elpa" fcuny-path-emacs-var)
+  "Path to elpa's local files.")
 
 (provide 'config-env)
diff --git a/emacs.d/config/config-package.el b/emacs.d/config/config-package.el
index 1b262c3..5389c0c 100644
--- a/emacs.d/config/config-package.el
+++ b/emacs.d/config/config-package.el
@@ -1,12 +1,11 @@
+(require 'config-env)
+
 ;; where to store the packages
-(setq package-user-dir (expand-file-name "var/elpa" user-emacs-directory))
+(setq package-user-dir fcuny-path-emacs-elpa)
 
 (require 'package)
 (add-to-list 'package-archives '("melpa" . "http://melpa.org/packages/") t)
 
-;; enable package
-;; (setq package-enable-at-startup nil)
-
 ;; initialize it
 (package-initialize)
 
diff --git a/emacs.d/init.el b/emacs.d/init.el
index 5c56b35..840bd29 100644
--- a/emacs.d/init.el
+++ b/emacs.d/init.el
@@ -11,9 +11,9 @@
 (add-to-list 'load-path (expand-file-name "config" user-emacs-directory))
 (add-to-list 'load-path (expand-file-name "modules" user-emacs-directory))
 
+(require 'config-env)
 (require 'config-lib)
 (require 'config-package)
-(require 'config-env)
 (require 'config-set-path)
 
 (require 'module-general)