From 2e51bbb969ac4af62251fcde76ec5b9eabd0f202 Mon Sep 17 00:00:00 2001 From: kj Date: Sat, 5 Sep 2026 12:14:19 -0300 Subject: [PATCH] fix(init-ai): prevent unwanted autocompletion in agent-shell --- configs/init-ai.el | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/configs/init-ai.el b/configs/init-ai.el index 237caf6..646b407 100644 --- a/configs/init-ai.el +++ b/configs/init-ai.el @@ -229,13 +229,18 @@ content do not break gptel-magit." (setq agent-shell-transcript-file-path-function nil) (setq shell-maker-prompt-before-killing-buffer nil) - ;; Quitar cape-dabbrev y cape-history de agent-shell (evita autocompletar texto del buffer) + ;; Quitar cape-dabbrev, cape-history, comint-completion-at-point y el centinela t + ;; de agent-shell (evita autocompletar texto del buffer o historial de prompts previos) (add-hook 'agent-shell-mode-hook (lambda () + (remove-hook 'completion-at-point-functions #'cape-dabbrev t) + (remove-hook 'completion-at-point-functions #'cape-history t) + (remove-hook 'completion-at-point-functions #'comint-completion-at-point t) (setq-local completion-at-point-functions - (seq-remove (lambda (fn) - (memq fn '(cape-dabbrev cape-history))) - completion-at-point-functions))))) + (delq t completion-at-point-functions)) + (setq-local corfu-auto nil)) + t) ;; :append para correr DESPUÉS de que agent-shell configure sus CAPFs + ) (provide 'init-ai) ;;; init-ai.el ends here