diff options
Diffstat (limited to '.emacs.d')
-rw-r--r-- | .emacs.d/.gitignore | 2 | ||||
-rw-r--r-- | .emacs.d/init.el | 16 |
2 files changed, 15 insertions, 3 deletions
diff --git a/.emacs.d/.gitignore b/.emacs.d/.gitignore index 5349c45..c65df60 100644 --- a/.emacs.d/.gitignore +++ b/.emacs.d/.gitignore @@ -12,3 +12,5 @@ org-roam.db .org-id-locations pyim .last-package-update-day + +lisp/init-local.el
\ No newline at end of file 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) |