diff options
author | Franck Cuny <franck.cuny@gmail.com> | 2018-04-08 17:07:55 -0700 |
---|---|---|
committer | Franck Cuny <franck.cuny@gmail.com> | 2018-04-08 17:07:55 -0700 |
commit | 678d67c3637767c5a5dc7ca2ec9ea301c37e7b76 (patch) | |
tree | fb1c60d0f49bd4747618c74061b7729d1006ee42 | |
parent | [emacs] Rename some custom variables. (diff) | |
download | emacs.d-678d67c3637767c5a5dc7ca2ec9ea301c37e7b76.tar.gz |
[emacs] Add additional variables.
Diffstat (limited to '')
-rw-r--r-- | emacs.d/config/config-env.el | 8 | ||||
-rw-r--r-- | emacs.d/config/config-package.el | 7 | ||||
-rw-r--r-- | 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) |