From 678d67c3637767c5a5dc7ca2ec9ea301c37e7b76 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Sun, 8 Apr 2018 17:07:55 -0700 Subject: [emacs] Add additional variables. --- emacs.d/config/config-env.el | 8 +++++++- emacs.d/config/config-package.el | 7 +++---- emacs.d/init.el | 2 +- 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) -- cgit 1.4.1