emacs-openai / chatgpt

Use ChatGPT inside Emacs
GNU General Public License v3.0
185 stars 21 forks source link

How to control the place where chatgpt is created #24

Open jcubic opened 10 months ago

jcubic commented 10 months ago

I can't find it in the source code. It's really annoying that it uses a random window to open the chatGPT window. Is there a way to make it open in the window that has focus?

jcs090218 commented 10 months ago

I've added an option in 3dba6613b1fdd3b72f2563dee7a978b48e9e6abd; now you can do:

(setq chatgpt-display-method #'switch-to-buffer)