aboutsummaryrefslogtreecommitdiff
path: root/shoshin-config.el
diff options
context:
space:
mode:
authorshoshin <shoshin@cicadas.surf>2022-07-05 11:33:00 -0500
committershoshin <shoshin@cicadas.surf>2022-07-05 11:33:00 -0500
commit984240b6ef8ca5c1c79ba9a124a2883598202501 (patch)
tree50326df7fec8d600c9f5342893ed2d09f6750f3e /shoshin-config.el
parentce7ae17b5d116f59b8e9139b467bc4c2bff5ed65 (diff)
Fix: [custom] make file if it does not exist
Diffstat (limited to 'shoshin-config.el')
-rw-r--r--shoshin-config.el8
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)