diff options
Diffstat (limited to '.emacs.d/init.el')
-rw-r--r-- | .emacs.d/init.el | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/.emacs.d/init.el b/.emacs.d/init.el index 21e5d01..66a37cc 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -13,6 +13,10 @@ (defconst *is-a-mac* (eq system-type 'darwin)) (defconst *is-a-linux* (eq system-type 'gnu/linux)) +(setq custom-file (expand-file-name "custom.el" user-emacs-directory)) +(unless (file-exists-p custom-file) + (write-region "" nil custom-file)) + (require 'init-package) (require 'init-utils) (require 'init-evil) @@ -29,7 +33,13 @@ (require 'init-misc) (require 'init-appearance) -(setq custom-file (expand-file-name "custom.el" user-emacs-directory)) -(unless (file-exists-p custom-file) - (write-region "" nil custom-file)) +(add-hook 'after-init-hook + (lambda () + (require 'server) + (unless (server-running-p) (server-start)))) + (load custom-file) + +(require 'init-local nil t) + +(provide 'init) |