diff options
Diffstat (limited to 'emacs')
-rw-r--r-- | emacs/init.el | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/emacs/init.el b/emacs/init.el index 5256c39..2706e43 100644 --- a/emacs/init.el +++ b/emacs/init.el @@ -3,6 +3,13 @@ ;;; Code: +;; store all the customizations into that file. if the file does not +;; exists, we create an empty file, and then we load it. +(setq custom-file (expand-file-name "var/custom.el" user-emacs-directory)) +(when (not (file-exists-p custom-file)) + (write-region "" nil custom-file)) +(load custom-file) + (setq gc-cons-threshold 64000000) (add-hook 'after-init-hook #'(lambda () ;; restore after startup |