From cb9ee8a56f117e57da1cc45c8773c9cffad936b0 Mon Sep 17 00:00:00 2001 From: Thanos Apollo Date: Fri, 15 Mar 2024 15:44:39 +0200 Subject: emacs: Update gptel config --- .emacs.d/init.el | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.emacs.d/init.el b/.emacs.d/init.el index 617d516..196fe17 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -45,6 +45,8 @@ (define-key global-map (kbd "M-") 'backward-kill-sexp) (define-key global-map (kbd "C-c L") 'display-line-numbers-mode) (define-key global-map (kbd "C-z") 'nil) +(define-key global-map (kbd "C-c r") 'rename-visited-file) + (add-to-list 'load-path "~/.emacs.d/modules") (setf disabled-command-function nil ;; Enable all commands @@ -698,7 +700,14 @@ (use-package gptel :defer t :config - (setf gptel-api-key (password-store-get-field "openai/openai@thanosapollo.org" "api")) + (setf gptel-api-key (password-store-get-field "openai/openai@thanosapollo.org" "api") + gptel-default-mode 'org-mode) + (setq-default + gptel-model "llama2:latest" + gptel-backend (gptel-make-ollama "Ollama" + :host "zeus:11434" + :stream t + :models '("llama2:latest" "zephyr:latest" "codellama:latest"))) :bind (:map gptel-mode-map ("C-c h" . 'gptel-menu))) -- cgit v1.2.3