Alex Kost <alez...@gmail.com> skribis:

> There are "M-x emacs-version", "M-x org-version", "M-x magit-version",
> etc.  So there should be "M-x guix-version"!

At last!  :-)

> I named the file "guix-about.el" because sooner or later there should
> appear "M-x guix-about" command that will display a fancy splash screen
> similar to the one you see after pressing "C-h C-a".

Of course.

> From 73a231e171ee19baf7ea4c6d96da446833fb4b74 Mon Sep 17 00:00:00 2001
> From: Alex Kost <alez...@gmail.com>
> Date: Wed, 20 Apr 2016 19:27:44 +0300
> Subject: [PATCH] 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.am (ELFILES): Add it.

[...]

> +(defun guix-version ()
> +  "Display Guix version in the echo area."
> +  (interactive)
> +  (message "%s %s" guix-config-name guix-config-version))

It would be interested to also display the value of ‘%guix-version’ on
the Scheme side, though maybe it should be a separate command, or maybe
no command at all after all?

Thanks,
Ludo’.

Reply via email to