diff options
author | Franck Cuny <franck.cuny@gmail.com> | 2018-06-13 11:19:33 -0700 |
---|---|---|
committer | Franck Cuny <franck.cuny@gmail.com> | 2018-06-13 11:19:33 -0700 |
commit | 23ae098d9839bfe78ae22ff0575a0ebde9429229 (patch) | |
tree | b3f2810967043a672a42cdbccc5dbc080c7b39b3 /emacs.d/init.el | |
parent | [bash] fix an alias (diff) | |
download | emacs.d-23ae098d9839bfe78ae22ff0575a0ebde9429229.tar.gz |
[emacs] Move back some configs to init.el
Diffstat (limited to 'emacs.d/init.el')
-rw-r--r-- | emacs.d/init.el | 57 |
1 files changed, 54 insertions, 3 deletions
diff --git a/emacs.d/init.el b/emacs.d/init.el index 6714294..7966f4c 100644 --- a/emacs.d/init.el +++ b/emacs.d/init.el @@ -5,6 +5,60 @@ ;; Initialise the package system first of all. (package-initialize) +(defvar fcuny-path-home (getenv "HOME") + "Path to the user's home directory.") + +(defvar fcuny-path-workspace (expand-file-name "workspace" fcuny-path-home) + "Path to the workspace.") + +(defvar fcuny-path-git-twitter (expand-file-name "git.twitter.biz" fcuny-path-workspace) + "Path to twitter's git repositories.") + +(defvar fcuny-path-git-github (expand-file-name "github.com" fcuny-path-workspace) + "Path to github's git repositories.") + +(defvar fcuny-path-svn-twitter (expand-file-name "svn.twitter.biz" fcuny-path-workspace) + "Path to twitter's SVN repositories.") + +(defvar fcuny-path-puppet-linter-svn (expand-file-name "twitter-ops/utilities/puppet/.puppet-lint.rc" + fcuny-path-svn-twitter) + "Path to the linter's configuration for twitter-ops.") + +(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.") + +(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.") + +(defvar fcuny-projects-ignored-dirs + '(".git" ".svn" "target" + "elpa")) + +(defvar fcuny-projects-ignored-files + '(".DS_Store" + "*.pyc" + "*.jar" + "*.zip" "*.tar.gz" "*.tgz" "*.gz" + "TAGS")) + +;; where to store the packages +(setq package-user-dir fcuny-path-emacs-elpa) + +(require 'package) +(add-to-list 'package-archives '("melpa" . "http://melpa.org/packages/") t) + +;; initialize it +(package-initialize) + +;; we install packages using the `use-package' module +(require 'use-package) + +(setq use-package-always-ensure t) + ;; Skip the default splash screen. (setq inhibit-startup-message t) @@ -17,10 +71,7 @@ (replace-regexp-in-string "\\..*" "" (system-name)))) (load (concat "module-" sub) t)) - -(load "config-env") (load "config-lib") -(load "config-package") (load "config-set-path") (load "module-general") |