From 4623abbda9dccc9e8df9d4424ab34e19100302a0 Mon Sep 17 00:00:00 2001 From: Abin Simon Date: Sat, 27 Jul 2024 20:38:07 +0530 Subject: [PATCH] [emacs] yap: tweak config and keybindings --- emacs/.config/emacs/init.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/emacs/.config/emacs/init.el b/emacs/.config/emacs/init.el index 6f8b6d6f..2d40a5a7 100644 --- a/emacs/.config/emacs/init.el +++ b/emacs/.config/emacs/init.el @@ -4350,10 +4350,12 @@ Pass in `LISTITEMS to decide if you wanna create a new item or search for existi (setq yap-api-key:openai openai-api-key) (setq yap-respond-in-buffer nil) (setq yap-show-diff-before-rewrite t) + (setq yap-log-requests "/Users/meain/.cache/yap") (global-set-key (kbd "M-f y y") 'yap-prompt) (global-set-key (kbd "M-f y r") 'yap-rewrite) - (global-set-key (kbd "M-f y w") 'yap-write)) + (global-set-key (kbd "M-f y w") 'yap-write) + (global-set-key (kbd "M-f y e") (lambda () (interactive) (yap-prompt 'explain-code)))) ;; Chatgpt shell (use-package chatgpt-shell