summaryrefslogtreecommitdiff
path: root/emacs
Commit message (Collapse)AuthorAge
* ui: Add package-description-string.Mathieu Lirzin2015-09-08
| | | | | | | | | | | | | Provide support for Texinfo's markup in package description. * guix/ui.scm (%text-width): New parameter. (texi->plain-text): New variable. (package->recutils): Use them. (package-description-string): New variable. * emacs/guix-main.scm (%package-param-alist): Use it. * gnu/packages/perl.scm (perl-devel-globaldestruction) (perl-devel-lexalias, perl-exporter-lite): Adapt to Texinfo's markup. * gnu/packages/python.scm (python2-empy): Likewise.
* emacs: Add support for "triplet" package inputs.Alex Kost2015-09-04
| | | | | | | | Fixes <http://bugs.gnu.org/21399>. * emacs/guix-main.scm (full-name->name+version): Adjust to handle "name-version:output" string. (package-inputs-names): Support ("name" package "output") inputs.
* emacs: Use "r" key for 'cran' action in 'import' popup.Alex Kost2015-09-02
| | | | | | * emacs/guix-command.el (guix-command-improve-import-argument): New variable and function. (guix-command-argument-improvers): Add it.
* emacs: Add "View graph" action to graph popup.Alex Kost2015-09-01
| | | | | | | * emacs/guix-command.el: Require 'guix-external'. (guix-run-view-graph): New function. (guix-command-additional-execute-arguments, guix-command-special-executors): Add entries for "View graph" action.
* emacs: Allow users to choose a 'find-file' function.Alex Kost2015-09-01
| | | | | * emacs/guix-utils.el (guix-find-file-function): New variable. (guix-find-file): Use it.
* emacs: Add code to run 'dot' program.Alex Kost2015-09-01
| | | | | * emacs/guix-external.el: New file. * emacs.am (ELFILES): Add it.
* emacs: Add code to pipe guix output to external program.Alex Kost2015-09-01
| | | | | * emacs/guix-main.scm: Use (ice-9 popen) module. (pipe-guix-output): New procedure.
* emacs: Use only one guix-load-path variable.Mathieu Lirzin2015-08-30
| | | | | emacs/guix-init.el (guix-load-path): Move to ... emacs/guix-backend.el (guix-load-path): ... Here. Redefine it.
* emacs: Fix guix-guile-program default value.Mathieu Lirzin2015-08-30
| | | | | | | | | Fixes <http://bugs.gnu.org/21127>. * emacs/guix-backend.el: Use guix-config. (guix-guile-program): Move to ... * emacs/guix-config.el.in (guix-guile-program): ... here. Use Guile program file name from compile-time instead of depending on PATH.
* build: Produce 'guix-config' instead of using compile-time tricks.Mathieu Lirzin2015-08-30
| | | | | | | | | | * emacs/guix-{init,profiles}.el.in: Rename to ... * emacs/guix-{init,profiles}.el: ... these. New files. Use 'guix-config'. * emacs/guix-config.el.in: New file. * emacs.am (nodist_lisp_DATA): Add it. Move them to ... (ELFILES): ... here. * .gitignore, configure.ac: Adjust accordingly.
* emacs: Use prompt for packages instead popup for edit action.Alex Kost2015-08-30
| | | | | | | | | | | | * emacs/guix-base.el (guix-package-location): New function. (guix-edit-package): Rename and move to ... * emacs/guix.el (guix-edit): ...here. Make it interactive. * emacs/guix-command.el (guix-edit-action): New function (alias to 'guix-edit') to override the popup for edit command in "M-x guix". * emacs/guix-list.el (guix-list-edit-package): Adjust for 'guix-edit' renaming. * emacs/guix-main.scm (package-location-string): Allow to accept package id or package name as argument.
* emacs: Add popup interface for guix commands.Alex Kost2015-08-30
| | | | | | | | | * emacs/guix-command.el: New file. * emacs.am (ELFILES): Add it. * doc/emacs.texi (Emacs Initial Setup): Mention 'magit-popup' library. (Emacs Popup Interface): New node. (Emacs Interface): Add it. * doc/guix.texi (Top): Likewise.
* emacs: Add "guix-popup.el".Alex Kost2015-08-30
| | | | | * emacs/guix-popup.el: New file. * emacs.am (ELFILES): Add it.
* emacs: Add code to run guix command in shell.Alex Kost2015-08-30
| | | | | | * emacs/guix-base.el (guix-run-in-shell, guix-run-in-eshell, guix-run-command-in-shell): New functions. (guix-run-in-shell-function, guix-shell-buffer-name): New variables.
* emacs: Add code to run guix command in REPL.Alex Kost2015-08-30
| | | | | | | * emacs/guix-base.el (guix-run-command-in-repl, guix-command-output, guix-help-string): New functions. * emacs/guix-main.scm (guix-command, guix-command-output, help-string): New procedures.
* emacs: Add and use alist accessors.Alex Kost2015-08-30
| | | | | | | | | | | * emacs/guix-utils.el (guix-define-alist-accessor): New macro. (guix-assq-value, guix-assoc-value): New functions. (guix-get-key-val): Remove. * emacs/guix-base.el: Replace 'guix-get-key-val' with 'guix-assq-value' everywhere. * emacs/guix-info.el: Likewise. * emacs/guix-list.el: Likewise. * emacs/guix-messages.el: Likewise.
* emacs: Add minibuffer readers.Alex Kost2015-08-30
| | | | | * emacs/guix-read.el: New file. * emacs.am (ELFILES): Add it.
* emacs: Add help variables.Alex Kost2015-08-30
| | | | | | | | | | | | | | | | | | | | * emacs/guix-pcomplete.el (guix-pcomplete-parse-package-regexp, guix-pcomplete-parse-command-regexp, guix-pcomplete-parse-long-option-regexp, guix-pcomplete-parse-short-option-regexp, guix-pcomplete-parse-list-regexp, guix-pcomplete-parse-regexp-group, guix-pcomplete-systems, guix-pcomplete-hash-formats, guix-pcomplete-refresh-subsets, guix-pcomplete-key-policies): Move and rename to ... * emacs/guix-help-vars.el (guix-help-parse-package-regexp, guix-help-parse-command-regexp, guix-help-parse-long-option-regexp, guix-help-parse-short-option-regexp, guix-help-parse-list-regexp, guix-help-parse-regexp-group, guix-help-system-types, guix-help-hash-formats, guix-help-refresh-subsets, guix-help-key-policies): ...here. New file. (guix-help-parse-option-regexp, guix-help-source-types, guix-help-verify-options, guix-help-elpa-archives): New variables. * emacs.am (ELFILES): Add "guix-help-vars.el".
* emacs: Add 'guix-package-names'.Alex Kost2015-08-30
| | | | | * emacs/guix-main.scm (package-names, package-names-lists): New procedures. * emacs/guix-base.el (guix-package-names): New function.
* emacs: Add 'guix-graph-type-names'.Alex Kost2015-08-30
| | | | | | * emacs/guix-main.scm: Use (guix scripts graph) module. (graph-type-names): New procedure. * emacs/guix-base.el (guix-graph-type-names): New function.
* emacs: Add 'guix-lint-checker-names'.Alex Kost2015-08-30
| | | | | | * emacs/guix-main.scm: Use (guix scripts lint) module. (lint-checker-names): New procedure. * emacs/guix-base.el (guix-lint-checker-names): New function.
* emacs: Add 'guix-memoized-defalias' macro.Alex Kost2015-08-30
| | | | | * emacs/guix-utils.el (guix-memoized-defalias): New macro. (guix-memoized-font-lock-keywords): New variable.
* emacs: Add 'guix-any'.Alex Kost2015-08-30
| | | | * emacs/guix-utils.el (guix-any): New function.
* emacs: Add utils to copy guix command.Alex Kost2015-08-30
| | | | | * emacs/guix-utils.el (guix-copy-as-kill, guix-copy-command-as-kill): New functions.
* emacs: Add utils to make symbol and string for guix command.Alex Kost2015-08-30
| | | | | * emacs/guix-utils.el (guix-shell-quote-argument, guix-command-symbol, guix-command-string): New functions.
* emacs: Add and use 'guix-concat-strings'.Alex Kost2015-08-30
| | | | | | * emacs/guix-utils.el (guix-concat-strings): New function. * emacs/guix-pcomplete.el (guix-pcomplete-short-options): Use it. * emacs/guix-base.el (guix-get-package-strings): Likewise.
* emacs: Add and use 'guix-while-search'.Alex Kost2015-08-30
| | | | | | * emacs/guix-utils.el (guix-while-search): New macro. * emacs/guix-pcomplete.el (guix-pcomplete-run-guix-and-search): Use it. * emacs/guix-prettify.el (guix-prettify-decompose-buffer): Likewise.
* emacs: Add 'guix-prettify' to 'guix' custom group.Alex Kost2015-08-30
| | | | * emacs/guix-prettify.el (guix-prettify): Add 'guix' group.
* emacs: Remove leftover internal variable.Alex Kost2015-08-30
| | | | | | | This is a followup to commit 74cc67372ec3771b157c015da4ba7ed5d921799f. * emacs/guix-base.el (guix-define-buffer-type): Remove 'mode-map' variable.
* emacs: Add completions for 'guix graph'.Alex Kost2015-08-27
| | | | | | | | | | | * emacs/guix-pcomplete.el (guix-pcomplete-parse-linter-regexp): Improve and rename to ... (guix-pcomplete-parse-list-regexp): ...this. New variable. (guix-pcomplete-lint-checkers): Use it. (guix-pcomplete-graph-types): New function. (guix-pcomplete-complete-command-arg): Complete package names for 'guix graph' command. (guix-pcomplete-complete-option-arg): Complete '-t/--type' option.
* emacs: Require 'cl-lib'.Ludovic Courtès2015-07-20
| | | | * emacs/guix-emacs.el: Require 'cl-lib', for 'cl-pushnew'.
* emacs: Fix reference to directory variable.Christopher Allan Webber2015-07-20
| | | | | | | | | This is a followup to commit 7741139080a6b00aa4f1846fe7668859e91bec58. * emacs/guix-emacs.el (guix-emacs-find-autoloads): Fix variable reference to 'elisp-root-dir'. Signed-off-by: Alex Kost <alezost@gmail.com>
* emacs: Fill package heading in Info buffers.Ludovic Courtès2015-07-14
| | | | | | | * emacs/guix-info.el (guix-package-info-fill-heading): New variable. (guix-package-info-insert-heading): Fill heading if needed. Co-authored-by: Alex Kost <alezost@gmail.com>
* emacs: Find autoloads in "guix.d" subdirectories.Alex Kost2015-07-11
| | | | | | | | | | | | | | Co-authored-by: Federico Beffa <beffa@fbengineering.ch>. * emacs/guix-emacs.el (guix-emacs-find-autoloads-in-directory, guix-emacs-subdirs): New functions. (guix-emacs-find-autoloads): Search for autoloads in "guix.d" subdirectories. (guix-emacs-load-autoloads): Add subdirectories to 'load-path'. * emacs/guix-init.el.in: Do not add guix emacs directory to 'load-path' because it will be done by 'guix-emacs-load-autoloads'. Move requiring 'guix-emacs' from the top-level to a clause for checking for 'guix-package-enable-at-startup'.
* emacs: Add 'guix-root-map'.Alex Kost2015-06-26
| | | | | | | | | * emacs/guix-base.el (guix-define-buffer-type): Move common key bindings from here... (guix-root-map): ... to here. New variable. * emacs/guix-info.el (guix-info-mode-map): Use it. * emacs/guix-list.el (guix-list-mode-map): Use it. * doc/emacs.texi (Emacs Keymaps): Document it.
* emacs: Add "edit" command to a list of packages.Alex Kost2015-06-22
| | | | | | | | | * emacs/guix-base.el (guix-edit-package): New function. * emacs/guix-list.el (guix-list-edit-package): New command. Bind it to "e" key. * emacs/guix-main.scm (package-location-string): New procedure. * doc/emacs.texi (Emacs List buffer): Document "e" key binding. * doc/guix.texi (Invoking guix edit): Mention "package list" buffer.
* emacs: Simplify defining package ID in a list buffer.Alex Kost2015-06-22
| | | | | | * emacs/guix-list.el: Always retrieve 'package-id' parameter for a list of outputs. (guix-list-current-package-id): New function.
* emacs: Complete 'guix size --map-file' properly.Alex Kost2015-06-22
| | | | | * emacs/guix-pcomplete.el (guix-pcomplete-complete-option-arg): Complete file name for '-m/--map-file' option of 'guix size' command.
* emacs: Add completions for 'edit' and 'size' commands.Alex Kost2015-06-19
| | | | | | | * emacs/guix-pcomplete.el (guix-pcomplete-complete-command-arg): Complete package names for 'guix edit' and 'guix size' commands. (guix-pcomplete-complete-option-arg): Complete '-s/--system' option for 'guix size'.
* emacs: Add shell completions for "guix" command.Alex Kost2015-06-08
| | | | | | | | Suggested by Ludovic Courtès <ludo@gnu.org>. * emacs/guix-pcomplete.el: New file. * emacs.am (ELFILES): Add it. * doc/emacs.texi (Emacs Completions): New node.
* emacs: Add "memoization" code.Alex Kost2015-06-08
| | | | | * emacs/guix-utils.el (guix-memoize): New function. (guix-memoized-defun): New macro.
* emacs: Report about "search paths" after operation.Alex Kost2015-05-29
| | | | | * guix/scripts/package.scm: Export 'display-search-paths'. * emacs/guix-main.scm (process-package-actions): Use it.
* emacs: Add 'guix-apply-manifest'.Alex Kost2015-05-29
| | | | | | * emacs/guix-base.el (guix-apply-manifest): New command. Bind it to "M" key. * doc/emacs.texi (Emacs General info): Document it.
* emacs: Remove "M" key binding for marking all lines.Alex Kost2015-05-29
| | | | | | | | | * emacs/guix-list.el: Split 'guix-list-mark' into internal and interactive functions. Remove "M" key binding, use "C-u m" instead. (guix-list--mark): New function. Use it in other marking functions. (guix-list-mark): Mark all lines with a prefix argument. * doc/emacs.texi (Emacs List buffer): Document changes in the key bindings.
* emacs: In 'run-with-store' call, specify the guile-for-build.Ludovic Courtès2015-01-16
| | | | | | | This fixes a regression introduced in commit e87f059. * emacs/guix-main.scm (process-package-actions): Add call to 'set-guile-for-build' in monadic expression.
* emacs: Handle autoloading Emacs packages installed with Guix.Alex Kost2014-12-02
| | | | | | | | | * emacs/guix-emacs.el: New file. * emacs.am (ELFILES): Add it. * emacs/guix-backend.el (guix-after-repl-operation-hook): Add 'guix-emacs-load-autoloads-maybe'. * emacs/guix-init.el.in: Autoload emacs packages. (guix-package-enable-at-startup): New variable.
* emacs: Move profiles code to "guix-profiles.el.in".Alex Kost2014-12-02
| | | | | | | | | | * emacs/guix-base.el (guix-user-profile, guix-default-profile, guix-current-profile, guix-profile-prompt, guix-set-current-profile): Move to... * emacs/guix-init.el.in (guix-default-profile): Move to... * emacs/guix-profiles.el.in: ... here. New file. * configure.ac (AC_CONFIG_FILES): Add "emacs/guix-profiles.el". * emacs.am (nodist_lisp_DATA): Likewise.
* emacs: Add missing directory to the guile load path.Alex Kost2014-11-26
| | | | | | Reported by Adam Pribyl and David Thompson. * emacs/guix-helper.scm.in (set-paths!): Add guile module dir to '%load-path'.
* emacs: Disable build traces produced by the daemon.Ludovic Courtès2014-11-25
| | | | | | * emacs/guix-main.scm (process-package-actions, package-source-build-derivation): Pass #:print-build-trace #f to 'set-build-options', to reduce verbosity.
* emacs: Don't override the user's 'geiser-guile-load-path'.Ludovic Courtès2014-11-20
| | | | | * emacs/guix-backend.el (guix-start-repl): Add GUIX-LOAD-PATH to the front of GEISER-GUILE-LOAD-PATH instead of overriding it.