From 13536dd91db143bd82e3360e83a8a2c2cd7e0fd9 Mon Sep 17 00:00:00 2001 From: tastytea Date: Tue, 28 May 2019 22:39:40 +0200 Subject: [PATCH] Automatically update date in AsciiDoc documents. --- init.el | 8 ++++++-- server/server | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/init.el b/init.el index 1f7270a..0062463 100644 --- a/init.el +++ b/init.el @@ -1,5 +1,5 @@ ;;; init.el --- tastytea's Emacs init file. -;; Time-stamp: <2019-05-26T14:28:08+00:00> +;; Time-stamp: <2019-05-28T20:39:03+00:00> ;;; Commentary: ;; I am using this file with Emacs 26, but most of it will probably work with @@ -758,7 +758,11 @@ With argument, do this that many times." (markup-verbatim-face ((t (:background "gray5")))) :hook (adoc-mode . auto-fill-mode) ; Wrap at fill-column. - (adoc-mode . my/set-fill-column-80)) + (adoc-mode . my/set-fill-column-80) + (adoc-mode . (lambda () ; Automatically update date. + (setq-local time-stamp-pattern + "8/:[dD[aA][tT][eE]: +%:y-%02m-%02d\n"))) + ) (use-package markdown-mode :custom diff --git a/server/server b/server/server index eb05e3b..2ee1a80 100644 --- a/server/server +++ b/server/server @@ -1,2 +1,2 @@ -127.0.0.1:51313 18482 +127.0.0.1:51313 21291 phahw2ohVoh0oopheish7IVie9desh8aequeenei3uo8wahShe%thuadaeNa4ieh \ No newline at end of file