Update to not use touch

This commit is contained in:
William Moore 2024-07-14 02:31:15 -05:00
parent 54ddb8da28
commit 92665d0b05

10
init.el
View File

@ -1,6 +1,8 @@
(unless (file-exists-p "~/.emacs.d/custom-init.el") (setq custom-init "~/.emacs.d/custom-init.el")
(shell-command (concat "touch " "~/.emacs.d/custom-init.el")))
(load-file "~/.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 stuff
(custom-set-variables (custom-set-variables
@ -17,7 +19,7 @@
(setq custom-file "~/.emacs.d/custom-config.el") (setq custom-file "~/.emacs.d/custom-config.el")
(unless (file-exists-p custom-file) (unless (file-exists-p custom-file)
(shell-command (concat "touch " custom-file))) (dired-create-empty-file custom-file))
(load custom-file) (load custom-file)
;; whomp helpers ;; whomp helpers