karthink / gptel

A simple LLM client for Emacs
GNU General Public License v3.0
1.06k stars 116 forks source link

Customizing gptel-mode-hook example #86

Closed LittleHouse75 closed 1 year ago

LittleHouse75 commented 1 year ago

Might someone give an example for customizing ‘gptel-mode-hook’?

I’m trying to always enter a minor mode (olivetti-mode) with gptel, and I can’t quite get the syntax right.

Thanks!!!

karthink commented 1 year ago
(add-hook 'gptel-mode-hook 'olivetti-mode)

Does this work?

LittleHouse75 commented 1 year ago

Couldn’t get that to work when I used it as a value for ‘gptel-mode-hook’, but worked perfectly when I added it to my init.el. Thank you!