summaryrefslogtreecommitdiff
path: root/ennu.el
diff options
context:
space:
mode:
authorArun Isaac2019-08-22 15:45:41 +0530
committerArun Isaac2019-08-22 15:45:41 +0530
commit61c18b25bfb8f92da71c0a3f095844ab1222edc7 (patch)
tree677277e2b606fc96eee562f57414b093c3b81a06 /ennu.el
parente50c0e2648dec0149663d050b701cfebcba51b1f (diff)
downloadennum-61c18b25bfb8f92da71c0a3f095844ab1222edc7.tar.gz
ennum-61c18b25bfb8f92da71c0a3f095844ab1222edc7.tar.lz
ennum-61c18b25bfb8f92da71c0a3f095844ab1222edc7.zip
Specify ennu version in Atom feed generator field.
* ennu.el (ennu-version): New variable. (ennu-publish-feed): Specify ennu version in generator field.
Diffstat (limited to 'ennu.el')
-rw-r--r--ennu.el8
1 files changed, 5 insertions, 3 deletions
diff --git a/ennu.el b/ennu.el
index 2e54938..8fe8e59 100644
--- a/ennu.el
+++ b/ennu.el
@@ -7,6 +7,9 @@
(require 'cl)
(require 'memoize)
+(defvar ennu-version "0.1.0"
+ "Ennu version string")
+
(defmacro ennu--with-file-contents (file &rest body)
(declare (indent defun))
`(with-temp-buffer
@@ -147,9 +150,8 @@
(updated ,(ennu--atom-date (plist-get (ennu-post-metadata (first posts)) :date)))
(link :rel "self" :href ,(ennu--absolute-uri feed-file))
(generator
- ;; TODO: Change this generator
- ,(format "Emacs %d.%d Org-mode %s ennu"
- emacs-major-version emacs-minor-version (org-version)))
+ ,(format "Emacs %d.%d Org-mode %s ennu %s"
+ emacs-major-version emacs-minor-version (org-version) ennu-version))
(rights ,rights)
,@(when subtitle
`((subtitle ,subtitle)))