xenodium / chatgpt-shell

ChatGPT and DALL-E Emacs shells + Org babel 🦄 + a shell maker for other providers
https://xenodium.com
GNU General Public License v3.0
827 stars 74 forks source link

Why does a chatgpt-shell buffer pop up when I launch Emacs? #223

Closed madorian closed 3 months ago

madorian commented 3 months ago

I don't want a pop up buffer when I launch Emacs.

Can I somehow kill that?;)

xenodium commented 3 months ago

That shouldn't happen. Can you share your package setup?

madorian commented 3 months ago

Here's my init

(use-package shell-maker
  :straight (:host github :repo "xenodium/chatgpt-shell" :files ("shell-maker.el")))

(use-package chatgpt-shell
  :requires shell-maker
  :straight (:host github :repo "xenodium/chatgpt-shell" :files ("chatgpt-shell.el")))

(setq chatgpt-shell-openai-key "foo")

(use-package ob-chatgpt-shell
  :requires shell-maker
  :straight (:host github :repo "xenodium/chatgpt-shell" :files ("ob-chatgpt-shell.el")))

(setq chatgpt-shell-streaming nil)

(require 'ob-chatgpt-shell)
(ob-chatgpt-shell-setup)
(add-to-list 'org-structure-template-alist '("sg" . "src chatgpt-shell\n"))
xenodium commented 3 months ago

Looks ok to me. I'm loading with very similar code and I'm not seeing the behaviour you're describing. Any chance you have code elsewhere? Can you launch Emacs with -Q and only execute the above snippet? Does it still reproduce the issue? Do you have a video showing the issue?

ps. On a minor note, I'd probably move things like (setq chatgpt-shell-streaming nil) to the chatgpt-shell use-package :config block. Same for ob-chatgpt-shell :config.

madorian commented 3 months ago

Sorry, figured it out. I cleaned up the file and found some weird fragments. All good now, thanks;)