2015-01-14 04:12:56 +00:00
|
|
|
;;; init.el --- Spacemacs Initialization File
|
|
|
|
;;
|
|
|
|
;; 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
|
2015-02-18 04:27:50 +00:00
|
|
|
(defconst spacemacs-version "0.62.0" "Spacemacs version.")
|
2015-02-13 03:10:10 +00:00
|
|
|
(defconst spacemacs-emacs-min-version "24.3" "Minimal version of Emacs.")
|
2015-01-14 04:12:56 +00:00
|
|
|
|
2015-01-20 05:47:05 +00:00
|
|
|
(defun spacemacs/emacs-version-ok ()
|
2015-02-13 03:10:10 +00:00
|
|
|
(version<= spacemacs-emacs-min-version emacs-version))
|
2012-12-18 05:48:12 +00:00
|
|
|
|
2014-12-12 16:11:15 +00:00
|
|
|
(when (spacemacs/emacs-version-ok)
|
2015-01-27 03:51:47 +00:00
|
|
|
(load-file (concat user-emacs-directory "core/core-load-paths.el"))
|
|
|
|
(require 'core-spacemacs-mode)
|
|
|
|
(require 'core-configuration-layer)
|
2014-12-14 18:53:06 +00:00
|
|
|
(spacemacs/initialize)
|
2014-12-20 20:08:02 +00:00
|
|
|
;; synchronize and load configuration layers
|
2015-02-13 03:11:27 +00:00
|
|
|
(configuration-layer/declare-layers)
|
2014-12-25 19:45:27 +00:00
|
|
|
(configuration-layer/load-layers)
|
2015-02-17 18:31:51 +00:00
|
|
|
(when dotspacemacs-delete-orphan-packages
|
2015-02-15 03:03:30 +00:00
|
|
|
(configuration-layer/delete-orphan-packages))
|
2014-12-25 19:45:27 +00:00
|
|
|
(configuration-layer/setup-after-init-hook)
|
2014-10-24 03:07:40 +00:00
|
|
|
;; start a server for subsequent emacs clients
|
|
|
|
(require 'server)
|
|
|
|
(unless (server-running-p)
|
|
|
|
(server-start)))
|