[Init] Load customizations in ‘db/run-init’

This commit is contained in:
Daniel - 2017-10-27 22:06:45 +02:00
parent cd8e7ccd74
commit 3f1ae34575
Signed by: dbo
GPG Key ID: 4F63DB96D45AA9C6
1 changed files with 6 additions and 11 deletions

17
init.el
View File

@ -48,6 +48,11 @@
(defun db/run-init ()
"Run main initialization after everything is set up."
;; Load customizations
(when (file-exists-p custom-file)
(load-file custom-file))
;; Activate modes (builtin)
(show-paren-mode 1)
@ -94,15 +99,7 @@
which-key-mode
projectile-mode))
(ignore-errors ; dont barf if mode cannot be loaded
(funcall mode +1)))
;; Color Theme
;; setting this in `custom-file does not work, so we set it here
(custom-set-variables
'(custom-enabled-themes (quote (exot-main
solarized-dark
smart-mode-line-dark))))
(funcall mode +1)))
;; Global Hooks
@ -314,8 +311,6 @@ _h_ _l_ _o_k _y_ank
;; * Builtin Variables
(setq custom-file (expand-file-name "custom.el" emacs-d))
(when (file-exists-p custom-file)
(load-file custom-file))
(use-package cl-lib)
(use-package subr-x)