Emacs: Add timestamp support to org #+DATE.

This commit is contained in:
tastytea 2020-07-29 16:15:41 +02:00
parent 012a025d8d
commit 6f6e6c7f33

View File

@ -1,6 +1,6 @@
;;; misc.el --- Miscellaneous file formats. -*- lexical-binding: t; -*-
;; Time-stamp: <2020-07-28T23:40:41+0200>
;; Time-stamp: <2020-07-29T16:14:44+0200>
;;; Commentary:
@ -120,6 +120,10 @@
(add-to-list 'org-modules 'org-tempo) ; Templates (<s).
(put 'org-confirm-babel-evaluate
'safe-local-variable #'booleanp))
:hook (org-mode . (lambda () ; Automatically update date.
(setq-local
time-stamp-pattern
"8/#\\+[dD][aA][tT][eE]: <+%Y-%02m-%02d %H:%M>")))
:bind (("C-c o" . (lambda () (interactive) ; Open notes.
(find-file org-default-notes-file)))
(:map org-mode-map ; Remove some annoying keybindings.