Doom Emacs Ollama
I did install Ollama for Emacs.
Ollama runs AI locally on your machine. You can install AI models you want to use.
After some trial and error I found out how to install it in Doom Emacs.
I did add this directory:
.config/emacs/modules/tools/ollama/autoload
And copied ollama.el
into it.
Tip: you can set the Ollama language model by change this line in ollama.el
:
(defcustom ollama:model "llama2-uncensored"
I just changed it to codeup
.
Now you are ready to insert it into the config file: .config/doom/init.el
.
Just add the following into the :tools
section: ollama
.
Now run ./doom sync
in the Emacs
.config/emacs/bin
directory.
Finally you can use the Ollama functions in Doom Emacs by pressing “M-x” and type in “ollama”.
Have fun!