2015-01-27 03:51:47 +00:00
|
|
|
;;; core-load-paths.el --- Spacemacs Core File
|
2015-01-23 03:26:56 +00:00
|
|
|
;;
|
|
|
|
;; Copyright (c) 2012-2014 Sylvain Benner
|
|
|
|
;; Copyright (c) 2014-2015 Sylvain Benner & Contributors
|
|
|
|
;;
|
|
|
|
;; Author: Sylvain Benner <sylvain.benner@gmail.com>
|
|
|
|
;; URL: https://github.com/syl20bnr/spacemacs
|
|
|
|
;;
|
|
|
|
;; This file is not part of GNU Emacs.
|
|
|
|
;;
|
|
|
|
;;; License: GPLv3
|
|
|
|
(defun add-to-load-path (dir) (add-to-list 'load-path dir))
|
|
|
|
|
2015-01-25 04:58:24 +00:00
|
|
|
;; paths
|
|
|
|
(defconst spacemacs-core-directory
|
|
|
|
(expand-file-name (concat user-emacs-directory "core/"))
|
|
|
|
"Spacemacs core directory.")
|
2015-04-13 06:17:48 +00:00
|
|
|
(defconst spacemacs-release-notes-directory
|
|
|
|
(expand-file-name (concat spacemacs-core-directory "release-notes/"))
|
|
|
|
"Spacemacs release notes directory")
|
2015-01-25 04:58:24 +00:00
|
|
|
(defconst spacemacs-banner-directory
|
|
|
|
(expand-file-name (concat spacemacs-core-directory "banners/"))
|
|
|
|
"Spacemacs banners directory.")
|
2015-03-13 03:55:38 +00:00
|
|
|
(defconst spacemacs-banner-official-png
|
|
|
|
(expand-file-name (concat spacemacs-banner-directory "img/spacemacs.png"))
|
|
|
|
"Spacemacs official banner image.")
|
2015-01-25 04:58:24 +00:00
|
|
|
(defconst spacemacs-directory
|
|
|
|
(expand-file-name (concat user-emacs-directory "spacemacs/"))
|
|
|
|
"Spacemacs base directory.")
|
|
|
|
(defconst spacemacs-cache-directory
|
|
|
|
(expand-file-name (concat user-emacs-directory ".cache/"))
|
2015-04-13 06:17:48 +00:00
|
|
|
"Spacemacs storage area for persistent files")
|
2015-02-04 04:56:38 +00:00
|
|
|
|
|
|
|
(defconst user-home-directory
|
|
|
|
(expand-file-name "~/")
|
|
|
|
"User home directory (~/).")
|
2015-01-25 04:58:24 +00:00
|
|
|
(defconst pcache-directory
|
|
|
|
(concat spacemacs-cache-directory "pcache"))
|
|
|
|
(unless (file-exists-p spacemacs-cache-directory)
|
|
|
|
(make-directory spacemacs-cache-directory))
|
2015-02-04 04:56:38 +00:00
|
|
|
|
2015-01-25 04:58:24 +00:00
|
|
|
(defconst user-dropbox-directory
|
|
|
|
(expand-file-name (concat user-home-directory "Dropbox/"))
|
|
|
|
"Dropbox directory.")
|
|
|
|
|
|
|
|
;; load paths
|
2015-01-23 03:26:56 +00:00
|
|
|
(mapc 'add-to-load-path
|
|
|
|
`(
|
|
|
|
,(concat user-emacs-directory "core/")
|
2015-01-23 04:03:20 +00:00
|
|
|
,(concat user-emacs-directory "core/libs/")
|
2015-01-25 04:58:24 +00:00
|
|
|
,(concat user-dropbox-directory "emacs/")
|
2015-01-23 03:26:56 +00:00
|
|
|
))
|