Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
65 lines (51 sloc) 1.78 KB
;;; Emacs configuration bootstrap file. This file will call a number
;;; of files, located first in lisp/
(when (version<= emacs-version "24")
(error "This is made form Emacs >=24"))
(add-to-list 'load-path (expand-file-name "lisp/" user-emacs-directory))
(defconst emacs-start-time (current-time))
;;; Raise garbage collection threshold after init
(add-hook 'after-init-hook
(lambda () (setq gc-cons-threshold local/gc-cons-threshold)))
;;; Custom variables
(setq custom-file (expand-file-name "custom.el" user-emacs-directory))
;;; Custom settings
(setq settings-file (expand-file-name "settings.el" user-emacs-directory))
;;; Loads settings file
(when (file-exists-p custom-file)
(load settings-file))
(require 'init-utils)
(require 'init-site-lisp)
(require 'init-elpa)
(require 'init-gui)
(require 'init-misc)
(require-package 'spacemacs-theme)
(load-theme 'spacemacs-dark t)
(require-package 'diminish)
(require-package 'scratch)
(require-package 'persistent-scratch)
(require 'init-company)
(require 'init-windows)
(require 'init-sessions)
(require 'init-editing-utils)
(require 'init-compile)
(require 'init-cmode)
(require 'init-langs)
(require 'init-javascript)
(require 'init-nxml)
(require 'init-ruby)
(require 'init-sql)
;; Allow access from emacsclient
(require 'server)
(unless (server-running-p)
;;; Loads custom file
(when (file-exists-p custom-file)
(load custom-file))
(when window-system
(let ((elapsed (float-time (time-subtract (current-time)
(message "[STARTUP] Loading %s ... done (%.3fs)" load-file-name elapsed)))
(provide 'init)