emacs: touch the custom-file

This commit is contained in:
Jeremy Baxter 2024-07-19 11:32:14 +12:00
parent fc2ebcea82
commit 7a1860317f

View file

@ -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