aboutsummaryrefslogtreecommitdiff
path: root/emacs/guix-config.el.in
diff options
context:
space:
mode:
authorAlex Kost <alezost@gmail.com>2016-04-20 19:27:44 +0300
committerAlex Kost <alezost@gmail.com>2016-05-09 11:41:00 +0300
commite3dba5ac75fd27acbf2067dcdb61a49f59cc33e6 (patch)
treeb7b184af3b1b384e2ddf67d92d2b885f9a1fedbd /emacs/guix-config.el.in
parent4c7729dc5602d1552df63fa3e8e10db3f5883a44 (diff)
downloadgnu-guix-e3dba5ac75fd27acbf2067dcdb61a49f59cc33e6.tar
gnu-guix-e3dba5ac75fd27acbf2067dcdb61a49f59cc33e6.tar.gz
emacs: Add 'guix-version' command.
* emacs/guix-config.el.in (guix-config-name, guix-config-version): New constants. * emacs/guix-about.el (guix-version): New command. New file. * emacs/local.mk (ELFILES): Add it.
Diffstat (limited to 'emacs/guix-config.el.in')
-rw-r--r--emacs/guix-config.el.in8
1 files changed, 7 insertions, 1 deletions
diff --git a/emacs/guix-config.el.in b/emacs/guix-config.el.in
index d03df9ce63..c09c2fe86a 100644
--- a/emacs/guix-config.el.in
+++ b/emacs/guix-config.el.in
@@ -1,7 +1,7 @@
;;; guix-config.el --- Compile-time configuration of Guix.
;; Copyright © 2015 Mathieu Lirzin <mthl@openmailbox.org>
-;; Copyright © 2015 Alex Kost <alezost@gmail.com>
+;; Copyright © 2015, 2016 Alex Kost <alezost@gmail.com>
;; This file is part of GNU Guix.
@@ -20,6 +20,12 @@
;;; Code:
+(defconst guix-config-name "@PACKAGE_NAME@"
+ "Guix full name.")
+
+(defconst guix-config-version "@PACKAGE_VERSION@"
+ "Guix version.")
+
(defconst guix-config-emacs-interface-directory
(replace-regexp-in-string "${prefix}" "@prefix@" "@emacsuidir@"))