Use authinfo for api keys & delete c3po

This commit is contained in:
Tobias Ostner 2023-04-30 08:53:29 +02:00
parent 0c7cb73424
commit 8ec59367a6
7 changed files with 15 additions and 15 deletions

View file

@ -54,16 +54,11 @@
("C-:" . avy-goto-char)
("M-g f" . avy-goto-line)))
(use-package c3po
:load-path "packages/c3po"
:config
(require 'to-secrets)
(setq c3po-api-key to/chat-gpt-api-key))
(use-package chatgpt-shell
:config
(require 'to-secrets)
(setq chatgpt-shell-openai-key to/chat-gpt-api-key))
(setq chatgpt-shell-openai-key
(lambda ()
(auth-source-pick-first-password :host "api.openai.com"))))
(use-package cider
:defer t)
@ -188,6 +183,9 @@
(set-selection-coding-system 'utf-8)
(prefer-coding-system 'utf-8)
(require 'epg)
(setq epg-pinentry-mode 'loopback)
(when (fboundp 'mac-auto-operator-composition-mode)
(mac-auto-operator-composition-mode)))

@ -1 +0,0 @@
Subproject commit dabfd86165a00516faa1a65e561b5aee01ff6c5f