This commit is contained in:
parent
1fe168ccc6
commit
f21f3dcc77
25 changed files with 883 additions and 984 deletions
|
|
@ -9,14 +9,14 @@
|
|||
;;; Copilot and other GPT stuff
|
||||
|
||||
;;; Code:
|
||||
(use-package copilot
|
||||
:ensure (:host github :repo "copilot-emacs/copilot.el" :files ("*.el")))
|
||||
|
||||
(with-eval-after-load 'copilot
|
||||
;; Do not enable copilot by default because it sorta sucks?
|
||||
;; (add-hook 'prog-mode-hook 'copilot-mode)
|
||||
(define-key copilot-completion-map (kbd "<tab>") 'copilot-accept-completion)
|
||||
(define-key copilot-completion-map (kbd "TAB") 'copilot-accept-completion))
|
||||
(use-package copilot :ensure (:host github :repo "copilot-emacs/copilot.el" :files ("*.el"))
|
||||
:defer t
|
||||
;; It sort of sucks so let's disable it.
|
||||
;; :hook ((prog-mode . copilot-mode))
|
||||
:bind (:map copilot-completion-map
|
||||
([tab] . copilot-accept-completion))
|
||||
:config
|
||||
(add-to-list 'copilot-indentation-alist '(emacs-lisp-mode . 2)))
|
||||
|
||||
;; Enable Anthropic Claude LLM support for chat (it also sucks)
|
||||
(defcustom anthropic-api-key "api-key" "The value of your Anthropic API key."
|
||||
|
|
@ -24,26 +24,22 @@
|
|||
:group 'icejam
|
||||
:initialize 'custom-initialize-set)
|
||||
|
||||
(use-package gptel :ensure t)
|
||||
(with-eval-after-load 'gptel
|
||||
(use-package gptel :ensure t :defer t
|
||||
:config
|
||||
(setq
|
||||
gptel-model "claude-3-5-sonnet-20241022"
|
||||
gptel-model 'claude-3-5-sonnet-20241022
|
||||
gptel-backend (gptel-make-anthropic "Claude"
|
||||
:stream t :key (lambda () anthropic-api-key))))
|
||||
|
||||
;; Pretend to be 'AI editor'.
|
||||
(use-package elysium :ensure t)
|
||||
(with-eval-after-load 'elysium
|
||||
(setq
|
||||
;; The elysium buffer will be 1/3 your screen
|
||||
elysium-window-size 0.33
|
||||
;; Elysium buffer will be vertical
|
||||
elysium-window-style 'vertical))
|
||||
(use-package elysium :ensure t :defer t
|
||||
:custom
|
||||
((elysium-window-size 0.33 "The elysium buffer will be 1/3 your screen")
|
||||
(elysium-window-style 'vertical "Elysium buffer will be vertical")))
|
||||
|
||||
;; Merging with SMerge
|
||||
(use-package smerge-mode :ensure nil)
|
||||
(with-eval-after-load 'smerge-mode
|
||||
(add-hook 'prog-mode-hook #'smerge-mode))
|
||||
(use-package smerge-mode :ensure nil
|
||||
:hook ((prog-mode . smerge-mode)))
|
||||
|
||||
(provide 'icejam-copilot)
|
||||
;;; icejam-copilot.el ends here
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue