X-Git-Url: https://git.korewanetadesu.com/?p=pelican-mode.git;a=blobdiff_plain;f=pelican-mode.el;h=1de4db34450e99d2e83c3aff33e1285b66ac000d;hp=85d2be924aeb5f1660a6cf80b031e172bf894657;hb=677ddbc98da226c94f29adbe7be3657956dd4d58;hpb=2442f07f94c4b90bceae26d04fa593d3a9eba3ff diff --git a/pelican-mode.el b/pelican-mode.el index 85d2be9..1de4db3 100644 --- a/pelican-mode.el +++ b/pelican-mode.el @@ -29,9 +29,11 @@ ;; process a variety of text file formats. For more information, see ;; URL https://blog.getpelican.com/. ;; -;; It's intended to be used alongside `markdown-mode' or `rst-mode'. -;; It also assumes you've set up Pelican with ``pelican-quickstart'' -;; or something like it. In particular it assumes: +;; It's intended to be used alongside a major mode for the Pelican +;; document. Currently supported formats are Markdown, +;; reStructuredText, AsciiDoc, and Org. It also assumes you've set up +;; Pelican with ``pelican-quickstart'' or something like it. In +;; particular it expects: ;; ;; * The existence of ``pelicanconf.py'' and ``Makefile'' in some ;; ancestor directory. @@ -170,7 +172,7 @@ When called from Lisp, VALUE may be any value; except for the following special values, the unquoted printed representation of it is used: -- `now' means the current time; see `pelican-mode-timestamp'. +- `now' means the current time. - `slug' means the file's path relative to the document root sans extension; see `pelican-mode-default-slug'. @@ -181,7 +183,7 @@ The buffer must be in a format listed in `pelican-mode-formats' for this function to work correctly." (interactive "sField: \nsValue: ") (setq value (pcase value - ('now (pelican-mode-timestamp)) + ('now (format-time-string "%Y-%m-%d %H:%M")) ('slug (pelican-mode-default-slug)) ('"" nil) (_ value))) @@ -266,10 +268,6 @@ has no status." -(defun pelican-mode-timestamp (&optional time) - "Generate a pelican-mode-compatible timestamp for TIME." - (format-time-string "%Y-%m-%d %H:%M" time)) - (defun pelican-mode-set-fields (&rest fields) "Insert a Pelican header for an article with metadata FIELDS." (mapc (apply-partially #'apply #'pelican-mode-set-field)