2013-11-20 05:30:23 +00:00
|
|
|
;; from jwiegley
|
|
|
|
;; https://github.com/jwiegley/dot-emacs/blob/master/init.el
|
|
|
|
(setq message-log-max 16384)
|
|
|
|
(defconst emacs-start-time (current-time))
|
2012-12-18 05:48:12 +00:00
|
|
|
|
2014-09-10 02:02:38 +00:00
|
|
|
;; paths
|
2014-09-02 04:23:43 +00:00
|
|
|
(defconst user-home-directory
|
2012-12-18 05:48:12 +00:00
|
|
|
(expand-file-name (concat user-emacs-directory "../"))
|
2014-09-02 04:23:43 +00:00
|
|
|
"User home directory (~/).")
|
2014-09-10 02:02:38 +00:00
|
|
|
(defconst spacemacs-core-directory
|
|
|
|
(expand-file-name (concat user-emacs-directory "core/"))
|
|
|
|
"Spacemacs core directory.")
|
|
|
|
(defconst spacemacs-contrib-config-directory
|
2014-09-02 04:23:43 +00:00
|
|
|
(expand-file-name (concat user-emacs-directory "contrib/"))
|
2014-09-10 02:02:38 +00:00
|
|
|
"Spacemacs contribution layers base directory.")
|
2014-09-03 06:27:14 +00:00
|
|
|
(defconst user-dropbox-directory
|
2014-08-29 03:59:21 +00:00
|
|
|
(expand-file-name (concat user-home-directory "Dropbox/"))
|
|
|
|
"Dropbox directory.")
|
2014-09-01 16:18:34 +00:00
|
|
|
;; if you have a dropbox, then ~/Dropbox/emacs is added to load path
|
|
|
|
(add-to-list 'load-path (concat user-dropbox-directory "emacs/"))
|
2012-12-21 21:06:22 +00:00
|
|
|
|
2014-09-10 02:02:38 +00:00
|
|
|
;; load core source
|
2014-09-10 02:37:06 +00:00
|
|
|
(dolist (elisp '("spacemacs-mode.el" "contribsys.el"))
|
2014-09-10 02:02:38 +00:00
|
|
|
(load (concat spacemacs-core-directory elisp)))
|
|
|
|
|
2014-09-10 03:05:02 +00:00
|
|
|
(spacemacs-buffer)
|
2014-09-10 02:37:06 +00:00
|
|
|
|
2014-09-02 04:23:43 +00:00
|
|
|
;; User configuration file for Spacemacs: ~/.spacemacs
|
2014-09-07 03:28:13 +00:00
|
|
|
(spacemacs-load-dotfile)
|
2014-09-02 04:23:43 +00:00
|
|
|
(dotspacemacs/init)
|
|
|
|
|
2014-09-05 04:09:03 +00:00
|
|
|
(contribsys/declare-layer 'spacemacs)
|
|
|
|
(contribsys/declare-configuration-layers)
|
|
|
|
(contribsys/load-layers)
|
2013-11-26 14:46:27 +00:00
|
|
|
|
2014-09-02 04:23:43 +00:00
|
|
|
;; Last configuration decisions are given to the user who can defined them
|
|
|
|
;; in ~/.spacemacs
|
|
|
|
(dotspacemacs/config)
|
2013-11-26 05:24:50 +00:00
|
|
|
|
2014-09-03 06:27:14 +00:00
|
|
|
; from jwiegley
|
2013-11-20 05:30:23 +00:00
|
|
|
;; https://github.com/jwiegley/dot-emacs/blob/master/init.el
|
|
|
|
;; Display load times after init.el and after all buffers has been loaded
|
2014-09-07 01:33:55 +00:00
|
|
|
(let ((elapsed (float-time (time-subtract (current-time)
|
|
|
|
emacs-start-time))))
|
|
|
|
(message "Loading %s...done (%.3fs)" load-file-name elapsed))
|
|
|
|
(add-hook 'after-init-hook
|
|
|
|
`(lambda ()
|
|
|
|
(let ((elapsed (float-time
|
|
|
|
(time-subtract (current-time) emacs-start-time))))
|
|
|
|
(message "Loading %s...done (%.3fs) [after-init]"
|
|
|
|
,load-file-name elapsed))) t)
|