2014-09-27 04:11:37 +00:00
|
|
|
;; spacemacs special buffer
|
2014-09-24 00:47:20 +00:00
|
|
|
(defconst spacemacs-core-directory
|
|
|
|
(expand-file-name (concat user-emacs-directory "core/"))
|
|
|
|
"Spacemacs core directory.")
|
2014-11-22 02:19:50 +00:00
|
|
|
(add-to-list 'load-path spacemacs-core-directory)
|
2014-11-22 02:55:00 +00:00
|
|
|
(require 'config-system)
|
2014-09-27 04:11:37 +00:00
|
|
|
(load (concat spacemacs-core-directory "spacemacs-mode.el"))
|
2014-10-04 02:18:27 +00:00
|
|
|
(spacemacs/buffer)
|
2012-12-18 05:48:12 +00:00
|
|
|
|
2014-10-16 06:16:39 +00:00
|
|
|
(defgroup spacemacs nil
|
|
|
|
"Spacemacs customizations."
|
|
|
|
:group 'starter-kit
|
|
|
|
:prefix 'spacemacs-)
|
|
|
|
|
2014-09-27 04:11:37 +00:00
|
|
|
(unless (not (spacemacs/emacs-version-ok))
|
|
|
|
;; additional paths
|
|
|
|
(defconst user-home-directory
|
|
|
|
(expand-file-name (concat user-emacs-directory "../"))
|
|
|
|
"User home directory (~/).")
|
2014-11-07 04:56:36 +00:00
|
|
|
(defconst spacemacs-directory
|
|
|
|
(expand-file-name (concat user-emacs-directory "spacemacs/"))
|
|
|
|
"Spacemacs base directory.")
|
2014-11-08 07:14:44 +00:00
|
|
|
(defconst spacemacs-cache-directory
|
|
|
|
(expand-file-name (concat user-emacs-directory ".cache/"))
|
|
|
|
"Spacemacs storage area for persistent files.")
|
|
|
|
(if (not (file-exists-p spacemacs-cache-directory))
|
|
|
|
(make-directory spacemacs-cache-directory))
|
2014-09-27 04:11:37 +00:00
|
|
|
(defconst user-dropbox-directory
|
|
|
|
(expand-file-name (concat user-home-directory "Dropbox/"))
|
|
|
|
"Dropbox directory.")
|
|
|
|
;; if you have a dropbox, then ~/Dropbox/emacs is added to load path
|
|
|
|
(add-to-list 'load-path (concat user-dropbox-directory "emacs/"))
|
2014-11-22 02:55:00 +00:00
|
|
|
|
|
|
|
(config-system/package.el-initialize)
|
2014-10-24 03:09:28 +00:00
|
|
|
;; User configuration file for Spacemacs: ~/.spacemacs
|
2014-11-22 02:19:50 +00:00
|
|
|
(dotspacemacs/load)
|
|
|
|
(dotspacemacs|call-func dotspacemacs/init)
|
2014-10-26 02:54:03 +00:00
|
|
|
;; default configuration layer of spacemacs
|
2014-11-22 02:55:00 +00:00
|
|
|
(config-system/declare-layer 'spacemacs)
|
|
|
|
(config-system/discover-contrib-layers)
|
|
|
|
(config-system/declare-dotspacemacs-configuration-layers)
|
2014-10-26 02:54:03 +00:00
|
|
|
;; heavy lifting, load all packages and extensions
|
2014-11-22 02:55:00 +00:00
|
|
|
(config-system/load-layers)
|
|
|
|
(config-system/delete-orphan-packages)
|
2014-10-26 02:54:03 +00:00
|
|
|
;; Ultimate configuration decisions are given to the user who can defined
|
|
|
|
;; them in his/her ~/.spacemacs file
|
2014-11-22 02:19:50 +00:00
|
|
|
(dotspacemacs|call-func dotspacemacs/config)
|
2014-11-22 02:55:00 +00:00
|
|
|
(config-system/setup-after-init-hook)
|
2014-10-09 18:06:59 +00:00
|
|
|
|
2014-10-24 03:07:40 +00:00
|
|
|
;; start a server for subsequent emacs clients
|
|
|
|
(require 'server)
|
|
|
|
(unless (server-running-p)
|
|
|
|
(server-start)))
|