From 685230b4a82a2d40099f7f0ed034469e5818196f Mon Sep 17 00:00:00 2001 From: Jeremy Dormitzer Date: Tue, 20 Aug 2024 11:06:37 -0400 Subject: [PATCH] Autoload gptel-context commands manually --- emacs/.emacs.d/config/init-ai.el | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/emacs/.emacs.d/config/init-ai.el b/emacs/.emacs.d/config/init-ai.el index 0c879c9..b15c2d0 100644 --- a/emacs/.emacs.d/config/init-ai.el +++ b/emacs/.emacs.d/config/init-ai.el @@ -5,6 +5,10 @@ (use-package gptel :commands (gptel-request) + :init + ;; Annoyingly, gptel fails to require gptel-context, so we have to do it manually + (autoload 'gptel-context-add "gptel-context") + (autoload 'gptel-context-add-file "gptel-context") :config ;; Default to creating a new buffer when invoking gptel (defun gptel-before-advice (name &optional _ initial interactivep)