From cfd1f1bc1bd30d6d993cc856237e62e5cc7e88ef Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Mon, 7 Dec 2020 08:23:22 -0600 Subject: Add a time-stamp hook --- config.org | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/config.org b/config.org index 21605d1..a146a04 100644 --- a/config.org +++ b/config.org @@ -1053,6 +1053,14 @@ Revert a buffer to reflect what's on disk if it's changed outside of Emacs. (cuss auto-revert-verbose nil) #+end_src +** Add a timestamp + +This'll add a timestamp to a file when I save it, if the first 8 lines includes the string =Time-stamp: <>=. + +#+begin_src emacs-lisp + (add-hook 'before-save-hook #'time-stamp) +#+end_src + * Writing Configurations related to writing prose or verse. -- cgit 1.4.1-21-gabe81