Automatically update date in AsciiDoc documents.

This commit is contained in:
tastytea 2019-05-28 22:39:40 +02:00
parent 2b1078b5c2
commit 13536dd91d
2 changed files with 7 additions and 3 deletions

View File

@ -1,5 +1,5 @@
;;; init.el --- tastytea's Emacs init file. ;;; 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: ;;; Commentary:
;; I am using this file with Emacs 26, but most of it will probably work with ;; 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")))) (markup-verbatim-face ((t (:background "gray5"))))
:hook :hook
(adoc-mode . auto-fill-mode) ; Wrap at fill-column. (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 (use-package markdown-mode
:custom :custom

View File

@ -1,2 +1,2 @@
127.0.0.1:51313 18482 127.0.0.1:51313 21291
phahw2ohVoh0oopheish7IVie9desh8aequeenei3uo8wahShe%thuadaeNa4ieh phahw2ohVoh0oopheish7IVie9desh8aequeenei3uo8wahShe%thuadaeNa4ieh