]> git.earman.xyz Git - emacsinit.git/commitdiff
Auto-create empty custom.el instead of keeping it in repo
authorrearman <rearman@r717.net>
Wed, 19 Apr 2023 20:12:50 +0000 (16:12 -0400)
committerrearman <rearman@r717.net>
Wed, 19 Apr 2023 20:12:50 +0000 (16:12 -0400)
init.org

index 864812c5cfd5bb4c8900cd5d21afc9d73ee3c8da..289f88985f9949f90fab9e56882851b050c22efc 100644 (file)
--- 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