emacs: info: Buttonize package name heading.

* emacs/guix-info.el (guix-package-info-insert-heading): Insert
  buttonized name specification.
This commit is contained in:
Alex Kost 2015-11-23 00:18:38 +03:00
parent fc7a28897c
commit 7171d824d7

View file

@ -560,9 +560,10 @@ After calling each METHOD, a new line is inserted."
(defun guix-package-info-insert-heading (entry)
"Insert package ENTRY heading (name specification) at point."
(guix-format-insert (concat (guix-entry-value entry 'name) " "
(guix-entry-value entry 'version))
'guix-package-info-heading))
(guix-insert-button
(guix-package-entry->name-specification entry)
'guix-package-name
'face 'guix-package-info-heading))
(defmacro guix-package-info-define-insert-inputs (&optional type)
"Define a face and a function for inserting package inputs.