Skip to content

Commit

Permalink
[emacs] yap: tweak config and keybindings
Browse files Browse the repository at this point in the history
  • Loading branch information
meain committed Jul 27, 2024
1 parent 1e194e6 commit 4623abb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion emacs/.config/emacs/init.el
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4623abb

Please sign in to comment.