summary refs log tree commit diff stats
path: root/user
diff options
context:
space:
mode:
authorAlan Pearce2024-12-30 14:26:39 +0100
committerAlan Pearce2024-12-30 14:29:27 +0100
commitbde4db59a7e054713f866f3c1a235fbbe4c20f51 (patch)
tree182c8e0b4b792aafa989ac18b639a7b44bce7c43 /user
parent50e3862ef17fa0aeff2e61b4e3cb61934548721f (diff)
downloadnixfiles-bde4db59a7e054713f866f3c1a235fbbe4c20f51.tar.lz
nixfiles-bde4db59a7e054713f866f3c1a235fbbe4c20f51.tar.zst
nixfiles-bde4db59a7e054713f866f3c1a235fbbe4c20f51.zip
install ollama + emacs frontend
Diffstat (limited to 'user')
-rw-r--r--user/emacs/init.el6
-rw-r--r--user/settings/emacs.nix1
2 files changed, 7 insertions, 0 deletions
diff --git a/user/emacs/init.el b/user/emacs/init.el
index 742107f5..037f8385 100644
--- a/user/emacs/init.el
+++ b/user/emacs/init.el
@@ -790,6 +790,12 @@ _C-k_: prev  _u_pper              _=_: upper/lower       _s_mart resolve
   :general (:keymaps 'comint-mode-map
                      "C-c C-l" #'counsel-shell-history))
 
+(use-package chatgpt-shell
+  :defer 5
+  :config (progn
+            (chatgpt-shell-ollama-load-models :override t)
+            (setq chatgpt-shell-model-version "llama3.3")))
+
 ;;; Editing
 
 (setq-default tab-always-indent 'complete
diff --git a/user/settings/emacs.nix b/user/settings/emacs.nix
index 0b1318a0..f0a0a0ee 100644
--- a/user/settings/emacs.nix
+++ b/user/settings/emacs.nix
@@ -74,6 +74,7 @@ in
         cape
         clojure-mode
         cask-mode
+        chatgpt-shell
         corfu
         consult
         consult-dir