Emacs: Add timestamp support to org #+DATE.
This commit is contained in:
parent
012a025d8d
commit
6f6e6c7f33
|
@ -1,6 +1,6 @@
|
||||||
;;; misc.el --- Miscellaneous file formats. -*- lexical-binding: t; -*-
|
;;; 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:
|
;;; Commentary:
|
||||||
|
|
||||||
|
@ -120,6 +120,10 @@
|
||||||
(add-to-list 'org-modules 'org-tempo) ; Templates (<s).
|
(add-to-list 'org-modules 'org-tempo) ; Templates (<s).
|
||||||
(put 'org-confirm-babel-evaluate
|
(put 'org-confirm-babel-evaluate
|
||||||
'safe-local-variable #'booleanp))
|
'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.
|
:bind (("C-c o" . (lambda () (interactive) ; Open notes.
|
||||||
(find-file org-default-notes-file)))
|
(find-file org-default-notes-file)))
|
||||||
(:map org-mode-map ; Remove some annoying keybindings.
|
(:map org-mode-map ; Remove some annoying keybindings.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user