diff options
author | Thanos Apollo <[email protected]> | 2024-03-15 15:44:39 +0200 |
---|---|---|
committer | Thanos Apollo <[email protected]> | 2024-03-15 16:02:59 +0200 |
commit | cb9ee8a56f117e57da1cc45c8773c9cffad936b0 (patch) | |
tree | cb3a378df318b19254052bfd2906c2cefc880393 | |
parent | d069c01aceef82e2470d15ba4485bd0391eca38f (diff) |
emacs: Update gptel config
-rw-r--r-- | .emacs.d/init.el | 11 |
1 files changed, 10 insertions, 1 deletions
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-<backspace>") '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/[email protected]" "api")) + (setf gptel-api-key (password-store-get-field "openai/[email protected]" "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))) |