diff options
author | shoshin <shoshin@cicadas.surf> | 2022-07-05 11:33:00 -0500 |
---|---|---|
committer | shoshin <shoshin@cicadas.surf> | 2022-07-05 11:33:00 -0500 |
commit | 984240b6ef8ca5c1c79ba9a124a2883598202501 (patch) | |
tree | 50326df7fec8d600c9f5342893ed2d09f6750f3e /shoshin-config.el | |
parent | ce7ae17b5d116f59b8e9139b467bc4c2bff5ed65 (diff) |
Fix: [custom] make file if it does not exist
Diffstat (limited to 'shoshin-config.el')
-rw-r--r-- | shoshin-config.el | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/shoshin-config.el b/shoshin-config.el index e57b2b5..293377d 100644 --- a/shoshin-config.el +++ b/shoshin-config.el @@ -1,7 +1,11 @@ ;;; shoshimacs.el --- Beginner's Mind Config -*- lexical-binding:t -*- -(setq custom-file "~/.emacs.d/shoshimacs-custom.el") -(load custom-file) +(let ((my-custom-file (expand-file-name + "shoshimacs-custom.el" user-emacs-directory))) + (unless (file-exists-p my-custom-file) + (make-empty-file my-custom-file)) + (setq custom-file my-custom-file) + (load custom-file)) ;;; Package Management (when (< emacs-major-version 28) |