;; from jwiegley ;; https://github.com/jwiegley/dot-emacs/blob/master/init.el (setq message-log-max 16384) (defconst emacs-start-time (current-time)) (defconst user-home-directory (expand-file-name (concat user-emacs-directory "../")) "User home directory (~/).") (defconst contrib-config-directory (expand-file-name (concat user-emacs-directory "contrib/")) "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 (load (concat user-home-directory ".spacemacs")) (dotspacemacs/init) (load (concat user-emacs-directory "contribsys.el")) (spacemacs/declare-layer 'spacemacs) ;; for now hardcoded contrib config layers (spacemacs/declare-layer 'syl20bnr t) (spacemacs/load-layers) ;; Last configuration decisions are given to the user who can defined them ;; in ~/.spacemacs (dotspacemacs/config) ; from jwiegley ;; https://github.com/jwiegley/dot-emacs/blob/master/init.el ;; Display load times after init.el and after all buffers has been loaded (when window-system (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))