Commit Graph

21 Commits

Author SHA1 Message Date
Tobias Geerinckx-Rice 825ab772f7
Remove all references to the GuixSD name.
* README (About, Installation): Replace ‘GuixSD’ with ‘Guix System’.
* doc/emacs-guix.texi (Package Commands, Profiles, Generations, System)
(System From File, Services, Service Commands): Likewise.
* elisp/guix-about.el (guix-logo-file): Unuse ‘guixsd-logo.svg’.
* elisp/guix-utils.el (guix-guixsd?): Remove now unused procedure.
(guix-read-os-file-name): Update docstring.
* images/README: Refer to singular ‘guix-logo.svg’.
* images/guixsd-logo.svg: Delete file.

Signed-off-by: John Soo <jsoo1@asu.edu>
2021-01-12 06:30:10 -08:00
Alex Kost abc5052d93 elisp/about: Silence byte-compiler about 'image-size' function
* elisp/guix-about.el (image-size): Declare 'image-size' function.
2019-11-21 19:20:39 +03:00
Alex Kost 4a775aa4d8 Update (remove) github links
- Geiser moved from github to gitlab.

- Although github repository of Emacs-Guix is not going to be removed,
  but it is not the "main" one anymore.

So update github links everywhere.
2018-06-17 17:27:08 +03:00
Alex Kost e6c22ab68f Update home page 2017-06-19 20:45:07 +03:00
Alex Kost 9925ee533d elisp: Add "guix-help.el"
* elisp/guix-about.el: Move "help" code to...
* elisp/guix-help.el: ... here.  New file.
* elisp/local.mk (EL_FILES): Add it.
2017-01-11 12:29:10 +03:00
Alex Kost 879338e5f0 elisp: Do not recreate some buffers if they exist
When you already have *Guix Help* buffer and you run "M-x guix-help"
command, you probably want just to switch to that buffer, not to
redisplay the whole its contents.  The same applies to some other Guix
buffers.

* elisp/guix-utils.el (guix-switch-to-buffer-or-funcall): New procedure.
* elisp/guix-about.el (guix-help-show, guix-about-show): New procedures.
(guix-help, guix-about): Use them accordingly.
* elisp/guix-ui-license.el (guix-licenses-show): New procedure.
(guix-licenses): Use it.
* elisp/guix-ui-location.el (guix-locations-show): New procedure.
(guix-locations): Use it.
* elisp/guix-ui-profile.el (guix-profiles-show): New procedure.
(guix-profiles): Use it.
2017-01-09 00:35:04 +03:00
Alex Kost 67ea35b5a2 elisp/about: Display logo only if image directory is set
* elisp/guix-about.el (guix-logo-file): Check 'guix-image-directory'.
(guix-insert-logo): Adjust accordingly.
2016-12-22 11:21:37 +03:00
Alex Kost 00322a0404 elisp/about: Place point below the logo in About buffer
* elisp/guix-about.el (guix-about-insert-content): Move the point 3
lines below the logo.
2016-12-21 14:14:23 +03:00
Alex Kost 9196b7faf3 elisp/about: Display Help/About buffers in the current window
Using 'with-output-to-temp-buffer' macro has some downsides.
Particularly, by default, it displays a buffer in another window; also
it does not allow to move the point position.  So add a major mode, and
display a buffer in the current window using it.

* elisp/guix-about.el (guix-help-mode-map): New variable.
(guix-help-mode): New major mode.
(guix-help-display-buffer): Use it and switch to the resulting buffer.
2016-12-21 14:14:23 +03:00
Alex Kost 63af974265 elisp/about: Factorize Help/About buffer displaying
A very similar code is used to insert the content and to display "Help"
and "About" buffers.  This commit generalize these commonalities.

* elisp/guix-about.el (guix-help-revert, guix-about-revert): Remove,
replace with...
(guix-help-make-revert-function): ... this.  New procedure.
(guix-help-insert-content, guix-about-insert-content): Do not erase the
buffer, as it is done by...
(guix-help-reinsert-content): ... this.  New procedure.
(guix-help, guix-about): Do not set up a target buffer as it is done by...
(guix-help-display-buffer): ... this. New procedure.
2016-12-21 14:14:23 +03:00
Alex Kost 48ebb9e391 elisp/about: Display Help buffer title in the header line
* elisp/guix-about.el (guix-help-insert-content): Adjust accordingly.
2016-12-21 14:14:23 +03:00
Alex Kost 1bdc80867d elisp/about: Remove the manual links from Help buffer
As these links are displayed in About buffer now.

* elisp/guix-about.el (guix-help-insert-content): Do not insert buttons
for the manuals.
2016-12-21 14:14:13 +03:00
Alex Kost 194192cd6c elisp: Add 'guix-about' command
Add logos from guix-artwork repository and use them for "M-x guix-about".

* images/guix-logo.svg: New file.
* images/guixsd-logo.svg: New file.
* images/README: New file.
* Makefile.am (dist_image_DATA): Add images.
* elisp/guix-build-config.el.in (guix-config-image-directory): New constant.
* elisp/guix-default-config.el (guix-config-image-directory): Likewise.
* elisp/guix-config.el (guix-image-directory): New variable.
* elisp/guix-utils.el (guix-guixsd?): New procedure.
* elisp/guix-about.el (guix-about-buffer-name)
(guix-about-specifications): New variables.
(guix-logo-file, guix-insert-logo, guix-about-revert)
(guix-about-insert-content): New procedures.
(guix-about): New command.
* doc/emacs-guix.texi (Introduction): Mention it.
2016-12-21 00:23:56 +03:00
Alex Kost d2e035c900 elisp/about: Add "info" buttons to Guix Help buffer
* elisp/guix-about.el (guix-insert-info-command-button)
(guix-goto-index-topic, guix-goto-command-index-topic): New procedures.
* elisp/guix-about.el (guix-help-insert-specification): Check
'info-button?' in specification.
(guix-help-specifications): Adjust accordingly.
2016-12-19 01:33:42 +03:00
Alex Kost 7d1a18493d elisp/about: Revert the meaning of command button specification
* elisp/guix-about.el (guix-help-specifications): Use t instead of nil
if command should be buttonized.
(guix-goto-index-topic): Adjust accordingly.
2016-12-19 00:55:02 +03:00
Alex Kost 8d0b6a6b6f elisp: Require 'guix' softly
This is a followup to commit b1db61ee28.

Since 'guix' feature provides custom groups only, it may not be a hard
dependency.
2016-12-15 16:57:56 +03:00
Alex Kost b1db61ee28 elisp: Add "guix.el" with custom groups
This is added mainly for MELPA, as it will be used to define
package headers (Package-Requires, etc.).

* elisp/guix-misc.el (guix, guix-faces): Move custom groups to...
* elisp/guix.el: ... here.  New file.
* elisp/guix-about.el: Require it.
* elisp/guix-build-log.el: Require it.
* elisp/guix-command.el: Require it.
* elisp/guix-devel.el: Require it.
* elisp/guix-external.el: Require it.
* elisp/guix-hydra.el: Require it.
* elisp/guix-misc.el: Require it.
* elisp/guix-pcomplete.el: Require it.
* elisp/guix-prettify.el: Require it.
* elisp/guix-repl.el: Require it.
* elisp/guix-ui-generation.el: Require it.
* elisp/guix-ui-license.el: Require it.
* elisp/guix-ui-location.el: Require it.
* elisp/guix-ui-package.el: Require it.
* elisp/guix-ui-profile.el: Require it.
* elisp/guix-ui-system-generation.el: Require it.
* elisp/guix-ui.el: Require it.
* elisp/guix-utils.el: Require it.
* elisp/local.mk (ELFILES): Add it.
2016-12-14 17:18:06 +03:00
Alex Kost bb86cb2140 elisp: Add 'guix-profiles' command
* elisp/guix-profiles.el (guix-profile-number-of-generations): New function.
* elisp/guix-ui-profile.el: New file.
* elisp/local.mk (ELFILES): Add it.
* elisp/guix-about.el (guix-help-specifications): Mention
'guix-profiles' command.
* README: Likewise.
* doc/emacs-guix.texi (Profiles): New node.
* elisp/guix-repl.el (guix-operation-buffer?): Add 'guix-profile-list-mode'.
2016-12-13 12:11:04 +03:00
Alex Kost 9b04eb0884 elisp: Add 'guix-help' command
* elisp/guix-about.el (guix-help-buffer-name, guix-help-doc-column)
(guix-help-specifications): New variables.
(guix-help-heading): New face.
(guix-insert-info-button, guix-insert-doc-button)
(guix-insert-command-button, guix-help-insert-specification)
(guix-help-revert, guix-help-insert-content): New procedures.
(guix-help): New command.
* doc/emacs-guix.texi (Introduction): Mention it.
* README: Likewise.
2016-12-12 20:48:16 +03:00
Alex Kost c7f935d191 elisp/about: Display Guix version
* elisp/guix-about.el (guix-version): Adjust to display both Emacs-Guix
and Guix versions.
2016-11-28 23:42:54 +03:00
Alex Kost 42716d2ce7 Revival commit
Emacs interface for Guix is about to be separated from the Guix code, so
this commit removes the old code and adds the according code and
data (elisp, scheme and texi documentation) to this repository.

The code itself wasn't touched (only header commentaries were changed),
so all this stuff is not in a working state yet.
2016-11-02 11:55:30 +03:00