From: rearman Date: Wed, 19 Apr 2023 20:12:50 +0000 (-0400) Subject: Auto-create empty custom.el instead of keeping it in repo X-Git-Url: https://git.earman.xyz/?a=commitdiff_plain;h=ff7faf958da2046298dc0c45416d79bf4b172c0a;p=emacsinit.git Auto-create empty custom.el instead of keeping it in repo --- diff --git a/init.org b/init.org index 864812c..289f889 100644 --- a/init.org +++ b/init.org @@ -1124,6 +1124,9 @@ I do not use the customize system. I don't want to see it if I don't have to. #+BEGIN_SRC emacs-lisp (setq custom-file (expand-file-name "custom.el" user-emacs-directory)) +(when (not (file-exists-p custom-file)) + (make-empty-file custom-file)) + (load custom-file) #+END_SRC