config/private: ensure config.el loads as late as possible #453

This commit is contained in:
Henrik Lissner 2018-03-05 23:01:17 -05:00
parent 4dd6bcdc5f
commit 4086ffd8e2
No known key found for this signature in database
GPG Key ID: 5F6C0EA160557395

View File

@ -1,4 +1,8 @@
;;; config/private/config.el -*- lexical-binding: t; -*-
(load (expand-file-name "config.el" +private-config-path)
'noerror 'nomessage)
(defun +private|load-config ()
"Loads your private config.el in `+private-config-path'."
(load (expand-file-name "config.el" +private-config-path)
'noerror 'nomessage))
(add-hook 'after-init-hook #'+private|load-config)