summaryrefslogtreecommitdiff
path: root/.emacs.d/init.el
diff options
context:
space:
mode:
authorThanos Apollo <[email protected]>2024-03-15 15:44:39 +0200
committerThanos Apollo <[email protected]>2024-03-15 16:02:59 +0200
commitcb9ee8a56f117e57da1cc45c8773c9cffad936b0 (patch)
treecb3a378df318b19254052bfd2906c2cefc880393 /.emacs.d/init.el
parentd069c01aceef82e2470d15ba4485bd0391eca38f (diff)
emacs: Update gptel config
Diffstat (limited to '.emacs.d/init.el')
-rw-r--r--.emacs.d/init.el11
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)))