aboutsummaryrefslogtreecommitdiff
path: root/emacs/guix-backend.el
diff options
context:
space:
mode:
authorAlex Kost <alezost@gmail.com>2014-11-30 23:38:43 +0300
committerAlex Kost <alezost@gmail.com>2014-12-02 22:09:23 +0300
commit12f2490aa3b9341e6df9df75bf88d7b2b502376d (patch)
treeb77908ec7556df2358fe129f05c3b3e72c6a532b /emacs/guix-backend.el
parent3db349cb09844e2770be3d0dee4e990f1228c2b6 (diff)
downloadpatches-12f2490aa3b9341e6df9df75bf88d7b2b502376d.tar
patches-12f2490aa3b9341e6df9df75bf88d7b2b502376d.tar.gz
emacs: Handle autoloading Emacs packages installed with Guix.
* 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.
Diffstat (limited to 'emacs/guix-backend.el')
-rw-r--r--emacs/guix-backend.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/emacs/guix-backend.el b/emacs/guix-backend.el
index a320eae35a..73a429b9ee 100644
--- a/emacs/guix-backend.el
+++ b/emacs/guix-backend.el
@@ -52,6 +52,7 @@
;;; Code:
(require 'geiser-mode)
+(require 'guix-emacs)
(defvar guix-load-path
(file-name-directory (or load-file-name
@@ -125,7 +126,8 @@ This REPL is used for receiving information only if
"Hook run before executing an operation in Guix REPL.")
(defvar guix-after-repl-operation-hook
- '(guix-repl-operation-success-message)
+ '(guix-emacs-load-autoloads-maybe
+ guix-repl-operation-success-message)
"Hook run after executing successful operation in Guix REPL.")
(defvar guix-repl-operation-p nil