From 61c18b25bfb8f92da71c0a3f095844ab1222edc7 Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Thu, 22 Aug 2019 15:45:41 +0530 Subject: Specify ennu version in Atom feed generator field. * ennu.el (ennu-version): New variable. (ennu-publish-feed): Specify ennu version in generator field. --- ennu.el | 8 +++++--- 1 file 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))) -- cgit v1.2.3