aboutsummaryrefslogtreecommitdiff
path: root/emacs/guix-emacs.el
Commit message (Collapse)AuthorAge
* gnu: emacs: Move "guix-emacs.el" to "aux-files".Alex Kost2017-02-27
| | | | | | | | | * emacs/guix-emacs.el: Rename to... * gnu/packages/aux-files/emacs/guix-emacs.el: ... this. * Makefile.am (AUX_FILES): Add it. * gnu/packages/emacs.scm (emacs)[inputs]: Remove 'guix' source. [native-inputs]: Add "guix-emacs.el" auxiliary file. [arguments]: Adjust 'install-site-start' phase accordingly.
* emacs: Find Emacs packages in a system profile.Alex Kost2016-02-07
| | | | | | | | Fixes <http://bugs.gnu.org/22550>. Reported by myglc2 <myglc2@gmail.com>. * emacs/guix-emacs.el (guix-emacs-autoload-packages): Autoload Emacs packages installed in a system profile.
* emacs: Move the code to load Emacs packages after installing.Alex Kost2016-02-07
| | | | | | | | | | | | This code should belong to "guix-backend" as it is run after a REPL operation to check if new Emacs packages have been installed and to autoload them if needed. * emacs/guix-emacs.el (guix-emacs-activate-after-operation) (guix-emacs-load-autoloads-maybe): Move and rename to... * emacs/guix-backend.el (guix-emacs-activate-after-operation) (guix-repl-autoload-emacs-packages-maybe): ... this. (guix-after-repl-operation-hook): Adjust for the renaming.
* emacs: Factorize searching for Emacs packages.Alex Kost2016-02-07
| | | | | | | | | | | * emacs/guix-emacs.el: (guix-emacs-directories): New procedure. (guix-emacs-find-autoloads-in-directory): Rename to... (guix-emacs-find-autoloads): ... this. (guix-emacs-load-autoloads): Remove. Replace with... (guix-emacs-autoload-packages): ... this. New procedure. At first, find a list of directories with Emacs packages, then add them to 'load-path' and finally, load autoloads. * doc/emacs.texi (Emacs Initial Setup): Adjust accordingly.
* emacs: Move loading packages to "guix-emacs.el".Alex Kost2016-01-13
| | | | | | * emacs/guix-init.el: Move the code for auto-loading Emacs packages to... (guix-package-enable-at-startup): Move to... * emacs/guix-emacs.el (guix-package-enable-at-startup): ... here.
* emacs: Make "guix-emacs.el" independent.Alex Kost2016-01-13
| | | | | | | | | | | | "guix-emacs.el" may be used just for "instructing" Emacs where to find Emacs packages installed with Guix, so it should have as few dependencies as possible. See <http://lists.gnu.org/archive/html/guix-devel/2016-01/msg00022.html>. * emacs/guix-emacs.el: Require 'guix-profiles' optionally. (guix-emacs-load-autoloads): Use 'guix-profile-prompt' only if it is available.
* emacs: Handle compiled autoloads.Alex Kost2015-12-11
| | | | | | * emacs/guix-emacs.el (guix-emacs-autoloads-regexp): New variable. (guix-emacs-find-autoloads-in-directory): Return a list of autoloads without extensions.
* emacs: 'guix-emacs-load-autoloads' takes a profile.Alex Kost2015-12-06
| | | | | | | * emacs/guix-emacs.el (guix-emacs-load-autoloads): Use 'profile' as an optional argument. (guix-emacs-load-autoloads-maybe): Adjust accordingly. * emacs/guix-init.el: Likewise.
* 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: 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: 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.