summary refs log tree commit diff
path: root/emacs/guix-init.el
diff options
context:
space:
mode:
Diffstat (limited to 'emacs/guix-init.el')
-rw-r--r--emacs/guix-init.el15
1 files changed, 15 insertions, 0 deletions
diff --git a/emacs/guix-init.el b/emacs/guix-init.el
new file mode 100644
index 0000000000..3a727c7eb6
--- /dev/null
+++ b/emacs/guix-init.el
@@ -0,0 +1,15 @@
+(require 'guix-autoloads)
+
+(defcustom guix-package-enable-at-startup t
+  "If non-nil, activate Emacs packages installed in a user profile.
+Set this variable to nil before requiring `guix-init' file to
+avoid loading autoloads of Emacs packages installed in
+`guix-user-profile'."
+  :type 'boolean
+  :group 'guix)
+
+(when guix-package-enable-at-startup
+  (require 'guix-emacs)
+  (guix-emacs-load-autoloads 'all))
+
+(provide 'guix-init)