From ae238d5c1a9425e89b6efdfd0e3e96509dea95be Mon Sep 17 00:00:00 2001 From: Alexander Rosenberg Date: Tue, 5 Mar 2024 11:21:06 -0800 Subject: [PATCH] Fix ellama --- init.el | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/init.el b/init.el index c6bc26a..ea9f5c3 100644 --- a/init.el +++ b/init.el @@ -169,6 +169,7 @@ "^~/.mail/[^/]/Drafts/.*" ,(format "^%svar/elpa/.*" user-emacs-directory) ,(format "^%svar/gnus/.*" user-emacs-directory) + ,(format "^%svar/ellama-sessions/.*" user-emacs-directory) ,(format "^%setc/gnus/.*" user-emacs-directory))) :bind ("C-c r" . recentf) :config @@ -1294,7 +1295,18 @@ buffers `helpful--sym' to `my/helpful-symbol-history'." ;; ai stuff (also mostly fun) (use-package ellama + :defer nil :custom - (ellama-keymap-prefix "C-c m")) + (ellama-sessions-directory (no-littering-expand-var-file-name + "ellama-sessions")) + (ellama-major-mode 'markdown-mode) ;; fix text inserting at top of buffer + (ellama-session-file-extension "md") + (ellama-nick-prefix "##") + (ellama-keymap-prefix "C-c m") + :hook (ellama-session-mode . my/-ellama-startup-hook) + :init + (defun my/-ellama-startup-hook () + "Hook to do stuff in llama buffers." + (auto-fill-mode -1))) ;;; init.el ends here