diff options
Diffstat (limited to '.emacs.d')
-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))) |