From 7a1860317f0fb5017b82bb92281f546b7c375104 Mon Sep 17 00:00:00 2001 From: Jeremy Baxter Date: Fri, 19 Jul 2024 11:32:14 +1200 Subject: [PATCH] emacs: touch the custom-file --- .emacs.d/init.el | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.emacs.d/init.el b/.emacs.d/init.el index 0d1c62f..5f46cc9 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -46,6 +46,11 @@ value `italic'." (apply #'set-face-attribute `(,(car l) t ,@(cdr l)))) list-of-lists)) +(defun touch (file-name) + "Create FILE-NAME or update its modified date." + (find-file custom-file) + (save-buffer) + (kill-current-buffer)) ;; other key binds (global-set-key (kbd "C-c e r") 'reindent-buffer) @@ -253,6 +258,7 @@ value `italic'." ;; custom (setq custom-file "~/.emacs.d/custom.el") +(touch custom-file) (load custom-file) ;; catppuccin theme