Files
dotemacs/config-local.example.el
T

74 lines
3.3 KiB
EmacsLisp

;;; config-local.example.el --- Template for machine-specific config -*- lexical-binding: t; -*-
;;
;; Copy this file to config-local.el and uncomment/modify the section for your setup.
;; config-local.el is gitignored, so each machine can have its own configuration.
;; Set personal values such as `user-mail-address' here, not in tracked config.
;;; ============================================================================
;;; OPTION 1: Linux with Ollama (local models)
;;; ============================================================================
;; (setq gptel-backend (gptel-make-ollama "Ollama"
;; :host "localhost:11434"
;; :stream t
;; :models '(qwen2.5-coder:7b
;; qwen3:32b
;; llama3.2:latest))
;; gptel-model 'qwen2.5-coder:7b)
;;
;; (setq-default gptel-model 'qwen2.5-coder:7b)
;;
;; (gptel-make-preset 'explain
;; :system "Explain what this code does to a novice programmer."
;; :model 'qwen2.5-coder:7b
;; :backend "Ollama")
;;; ============================================================================
;;; OPTION 2: macOS connecting to remote Linux server
;;; ============================================================================
;; (setq gptel-backend (gptel-make-openai "remote-llama"
;; :host "linux-server.local:8000" ; your server's hostname
;; :protocol "http"
;; :stream t
;; :models '(Qwen3-30B-A3B-Thinking-2507-Q6_K.gguf))
;; gptel-model 'Qwen3-30B-A3B-Thinking-2507-Q6_K.gguf)
;;
;; (setq-default gptel-model 'Qwen3-30B-A3B-Thinking-2507-Q6_K.gguf)
;;
;; (gptel-make-preset 'explain
;; :system "Explain what this code does to a novice programmer."
;; :model 'Qwen3-30B-A3B-Thinking-2507-Q6_K.gguf
;; :backend "remote-llama")
;;; ============================================================================
;;; OPTION 3: Linux with local llama.cpp server
;;; ============================================================================
;; (setq gptel-backend (gptel-make-openai "llama.cpp"
;; :host "localhost:8000"
;; :protocol "http"
;; :stream t
;; :models '(Qwen3-30B-A3B-Thinking-2507-Q6_K.gguf))
;; gptel-model 'Qwen3-30B-A3B-Thinking-2507-Q6_K.gguf)
;;
;; (setq-default gptel-model 'Qwen3-30B-A3B-Thinking-2507-Q6_K.gguf)
;;
;; ;; Also add Ollama as secondary backend
;; (gptel-make-ollama "Ollama"
;; :host "localhost:11434"
;; :stream t
;; :models '(qwen2.5-coder:7b qwen3:0.6B))
;;
;; (gptel-make-preset 'explain
;; :system "Explain what this code does to a novice programmer."
;; :model 'Qwen3-Coder-30B-A3B-Instruct-Q6_K.gguf
;; :backend "llama.cpp")
;;
;; (gptel-make-preset 'elixir
;; :system "You are an expert programmer, specialising in Elixir and TDD, you live in Emacs"
;; :model 'Qwen3-Coder-30B-A3B-Instruct-Q6_K.gguf
;; :backend "llama.cpp")
;;; config-local.example.el ends here