Skip to content

Example auto resume saved gptel‐mode conversations

Elijah Charles edited this page Jul 2, 2026 · 2 revisions
(defun my/markdown-pgtel-mode-switch ()
  "Switch mode if a gptel-model variable exists."
    (when (local-variable-p 'gptel-model)
      (gptel-mode)))

(add-hook 'hack-local-variables-hook #'my/markdown-pgtel-mode-switch)

Clone this wiki locally