aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--shoshin-config.el8
-rw-r--r--shoshin-config.org8
2 files changed, 12 insertions, 4 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)
diff --git a/shoshin-config.org b/shoshin-config.org
index 0fefc03..c730ddd 100644
--- a/shoshin-config.org
+++ b/shoshin-config.org
@@ -72,8 +72,12 @@ if they are not automatically tacked onto your initialization file. You can
set and load a separate file to keep it clean:
#+begin_src emacs-lisp
- (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))
#+end_src
* Package Management