From 92665d0b05a5cad78d2c2c7cb1e523a13f3010fb Mon Sep 17 00:00:00 2001 From: William Moore Date: Sun, 14 Jul 2024 02:31:15 -0500 Subject: [PATCH] Update to not use touch --- init.el | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/init.el b/init.el index 952ccd1..8500202 100644 --- a/init.el +++ b/init.el @@ -1,6 +1,8 @@ -(unless (file-exists-p "~/.emacs.d/custom-init.el") - (shell-command (concat "touch " "~/.emacs.d/custom-init.el"))) -(load-file "~/.emacs.d/custom-init.el") +(setq custom-init "~/.emacs.d/custom-init.el") + +(unless (file-exists-p custom-init) + (dired-create-empty-file custom-init)) +(load-file custom-init) ;; custom set stuff (custom-set-variables @@ -17,7 +19,7 @@ (setq custom-file "~/.emacs.d/custom-config.el") (unless (file-exists-p custom-file) - (shell-command (concat "touch " custom-file))) + (dired-create-empty-file custom-file)) (load custom-file) ;; whomp helpers