Skip to content

Commit a4c4ba9

Browse files
committed
Extract version automatically
1 parent d71bb60 commit a4c4ba9

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/el/sayid.el

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
;; Copyright (c) 2016-2019 Bill Piel, Bozhidar Batsov
44

55
;; Author: Bill Piel <[email protected]>
6-
;; Version: 0.0.19
6+
;; Version: 0.1.0
77
;; URL: https://github.com/clojure-emacs/sayid
88
;; Package-Requires: ((cider "0.21.0"))
99

@@ -31,6 +31,7 @@
3131

3232
;;; Code:
3333

34+
(require 'lisp-mnt)
3435
(require 'cider)
3536

3637
(defgroup sayid nil
@@ -46,7 +47,11 @@
4647
:group 'sayid
4748
:type 'boolean)
4849

49-
(defconst sayid-version "0.0.19")
50+
(defconst sayid-version
51+
(eval-when-compile
52+
(lm-version (or load-file-name buffer-file-name)))
53+
"The current version of `clojure-mode'.")
54+
5055

5156
(defface sayid-int-face '((t :inherit default))
5257
"Sayid integer face"

0 commit comments

Comments
 (0)