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-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 (~/).")
|
|
|
|
(defconst spacemacs-contrib-config-directory
|
|
|
|
(expand-file-name (concat user-emacs-directory "contrib/"))
|
|
|
|
"Spacemacs contribution layers base directory.")
|
|
|
|
(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/"))
|
|
|
|
;; User configuration file for Spacemacs: ~/.spacemacs
|
2014-10-04 02:18:27 +00:00
|
|
|
(spacemacs/load-dotfile)
|
2014-09-27 04:11:37 +00:00
|
|
|
(dotspacemacs/init)
|
|
|
|
;; initialisation of the contribution system based on configuration layers
|
|
|
|
;; additional configuration layers are declared in ~/.spacemacs
|
|
|
|
;; in variable dotspacemacs-configuration-layers
|
|
|
|
(load (concat spacemacs-core-directory "contribsys.el"))
|
|
|
|
(contribsys/declare-layer 'spacemacs)
|
|
|
|
(contribsys/declare-configuration-layers)
|
|
|
|
(contribsys/load-layers)
|
2014-10-23 04:21:10 +00:00
|
|
|
;; Temporary fix until automatic orphan packages deletion is ported to
|
|
|
|
;; Emacs 24.4
|
|
|
|
(if (version< emacs-version "24.4")
|
|
|
|
(contribsys/delete-orphan-packages))
|
2014-09-27 04:11:37 +00:00
|
|
|
;; Ultimate configuration decisions are given to the user who can defined
|
|
|
|
;; them in his/her ~/.spacemacs file
|
|
|
|
(dotspacemacs/config))
|
2014-10-09 18:06:59 +00:00
|
|
|
|
|
|
|
;; start a server for subsequent emacs clients
|
|
|
|
(require 'server)
|
|
|
|
(unless (server-running-p)
|
|
|
|
(server-start))
|