2015-07-30 13:43:13 +00:00
|
|
|
(defun zim-timestamp ()
|
|
|
|
(with-temp-buffer
|
|
|
|
(insert (format-time-string "%Y-%m-%dT%H:%M:%S%z"))
|
|
|
|
(forward-char -2)
|
|
|
|
(insert ":")
|
2015-08-24 06:21:44 +00:00
|
|
|
(buffer-string)))
|
2015-07-30 13:43:13 +00:00
|
|
|
|
2015-01-28 15:52:52 +00:00
|
|
|
(defun insert-zim-timestamp ()
|
|
|
|
(interactive)
|
2015-07-30 13:43:13 +00:00
|
|
|
(insert (zim-timestamp)))
|
|
|
|
|
|
|
|
(defun insert-zim-header ()
|
|
|
|
(interactive)
|
|
|
|
(save-excursion
|
|
|
|
(goto-char (point-min))
|
|
|
|
(insert
|
|
|
|
(concat "Content-Type: text/x-zim-wiki\n"
|
|
|
|
"Wiki-Format: zim 0.4\n"
|
|
|
|
"Creation-Date: " (zim-timestamp) "\n\n"))))
|