Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how can i display buffer on the right side instead of the bottom? #26

Open
yongzhengw opened this issue Aug 8, 2023 · 3 comments
Open

Comments

@yongzhengw
Copy link

I want to make the buffer display on the right side instead of the bottom. How can I do that?

@xhcoding
Copy link
Owner

xhcoding commented Aug 8, 2023

set aichat-bingai-assistant-display-function, https://github.com/xhcoding/emacs-aichat#options

@yongzhengw
Copy link
Author

Sorry, I’m not familiar with emacs, I tried
(setq aichat-bingai-chat-display-function 'display-buffer-in-side-window), not working

then i tried

(defcustom aichat-openai-assistant-display-function
  (lambda (buffer alist)
    (display-buffer-in-side-window buffer (cons '(side . right) alist)))
  "The function of display `aichat-openai-assistant-buffer'."
  :group 'aichat
  :type 'symbol)

still not working, can you give me an example, thanks

@xhcoding
Copy link
Owner

If you are not using any window management plugins, you can set the display-buffer-alist variable.

(add-to-list 'display-buffer-alist '("*Aichat-BingAI-Assistant*"  display-buffer-in-side-window))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants