diff options
author | Alex Kost <alezost@gmail.com> | 2015-11-23 00:18:38 +0300 |
---|---|---|
committer | Alex Kost <alezost@gmail.com> | 2016-01-02 17:25:35 +0300 |
commit | 7171d824d781db9c06df4c14c41b44e7f4cddb20 (patch) | |
tree | 64484a5610f1ecdcdc7515821840e34389d5473e /emacs/guix-info.el | |
parent | fc7a28897c454d1404e1af793b553ccb2c25ac24 (diff) | |
download | guix-7171d824d781db9c06df4c14c41b44e7f4cddb20.tar guix-7171d824d781db9c06df4c14c41b44e7f4cddb20.tar.gz |
emacs: info: Buttonize package name heading.
* emacs/guix-info.el (guix-package-info-insert-heading): Insert
buttonized name specification.
Diffstat (limited to 'emacs/guix-info.el')
-rw-r--r-- | emacs/guix-info.el | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/emacs/guix-info.el b/emacs/guix-info.el index b52bd73322..80443f2e40 100644 --- a/emacs/guix-info.el +++ b/emacs/guix-info.el @@ -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. |