Add ellama package if ollama is available

This commit is contained in:
Evie Litherland-Smith 2024-10-14 07:41:01 +01:00
parent 249171766b
commit 660bc7dfa3
2 changed files with 10 additions and 0 deletions

1
.gitignore vendored
View file

@ -81,3 +81,4 @@ flycheck_*.el
/straight/modified/
/straight/repos/*
!/straight/repos/straight.el
/ellama-sessions/

View file

@ -192,6 +192,8 @@ Configure the look and feel of Emacs
(add-to-list 'package-selected-packages 'visual-fill-column)
(use-package visual-fill-column
:if (package-installed-p 'visual-fill-column)
:functions (visual-fill-column-mode
global-visual-fill-column-mode)
:hook (((dired-mode org-src-mode org-agenda-mode) . (lambda () (visual-fill-column-mode +1)))
((doc-view-mode image-mode) . (lambda () (visual-fill-column-mode -1))))
:custom
@ -674,6 +676,13 @@ Configure email with iCalendar event support, to integrate with
:password (secrets-get-secret "default" "IRC libera.chat")))
#+end_src
** Other
*** Ellama
#+begin_src emacs-lisp
(if (executable-find "ollama" nil)
(add-to-list 'package-selected-packages 'ellama))
(use-package 'ellama
:if (package-installed-p 'ellama))
#+end_src
** Initial copy from =init.el=
#+begin_src emacs-lisp
(use-package pixel-scroll