summary refs log tree commit diff stats
path: root/config.org
diff options
context:
space:
mode:
authorCase Duckworth2020-12-07 08:23:22 -0600
committerCase Duckworth2020-12-07 08:23:22 -0600
commitcfd1f1bc1bd30d6d993cc856237e62e5cc7e88ef (patch)
tree414def43d9f065a03f133477cb49633fd1c9392d /config.org
parentAdd hungry-delete (diff)
downloademacs-cfd1f1bc1bd30d6d993cc856237e62e5cc7e88ef.tar.gz
emacs-cfd1f1bc1bd30d6d993cc856237e62e5cc7e88ef.zip
Add a time-stamp hook
Diffstat (limited to 'config.org')
-rw-r--r--config.org8
1 files changed, 8 insertions, 0 deletions
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.
1053 (cuss auto-revert-verbose nil) 1053 (cuss auto-revert-verbose nil)
1054#+end_src 1054#+end_src
1055 1055
1056** Add a timestamp
1057
1058This'll add a timestamp to a file when I save it, if the first 8 lines includes the string =Time-stamp: <>=.
1059
1060#+begin_src emacs-lisp
1061 (add-hook 'before-save-hook #'time-stamp)
1062#+end_src
1063
1056* Writing 1064* Writing
1057 1065
1058Configurations related to writing prose or verse. 1066Configurations related to writing prose or verse.