Skip to content

Commit

Permalink
Add simple configuration example to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
s-kostyaev committed Feb 23, 2025
1 parent ad88edf commit d9de354
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion README.org
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,19 @@ You can use ~ellama~ with other model or other llm provider.
Without any configuration, the first available ollama model will be used.
You can customize ellama configuration like this:

#+BEGIN_SRC emacs-lisp
(use-package ellama
:ensure t
:bind ("C-c e" . ellama-transient-main-menu)
:config
;; show ellama context in header line in all buffers
(ellama-context-header-line-global-mode +1)
;; send last message in chat buffer with C-c C-c
(add-hook 'org-ctrl-c-ctrl-c-final-hook #'ellama-chat-send-last-message))
#+END_SRC

More sofisticated configuration example:

#+BEGIN_SRC emacs-lisp
(use-package ellama
:ensure t
Expand Down Expand Up @@ -99,7 +112,7 @@ You can customize ellama configuration like this:
;; show ellama context in header line in all buffers
(ellama-context-header-line-global-mode +1)
;; send last message in chat buffer with C-c C-c
(add-hook 'org-ctrl-c-ctrl-c-hook #'ellama-chat-send-last-message))
(add-hook 'org-ctrl-c-ctrl-c-final-hook #'ellama-chat-send-last-message))
#+END_SRC

** Commands
Expand Down

0 comments on commit d9de354

Please sign in to comment.