emacs-aichat icon indicating copy to clipboard operation
emacs-aichat copied to clipboard

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

Open yongzhengw opened this issue 2 years ago • 3 comments

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

yongzhengw avatar Aug 08 '23 10:08 yongzhengw

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

xhcoding avatar Aug 08 '23 13:08 xhcoding

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

yongzhengw avatar Aug 11 '23 02:08 yongzhengw

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))

xhcoding avatar Aug 12 '23 11:08 xhcoding