You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The switch-to-buffer-obey-display-actions variable makes switch-to-buffer behave like display-buffer. I've been experimenting with this setting to make my window management more consistent. However this makes poly-mode misbehave.
When using ChatGPT.el which uses poly-mode, I found that whenever I put the cursor onto a new span (ie. moving from english text to a C# code region), a separate window would pop up for that region, instead of replacing the current buffer.
The following configuration is what caused the issue to occur:
;; Make switch-buffer obey rules set below
(setq switch-to-buffer-obey-display-actions t)
;; Number of sidebars allowed on left, top, right, bottom
(setq window-sides-slots '(nil nil 1 nil))
(add-to-list 'display-buffer-alist
'("\\*ChatGPT\\*$"
(display-buffer-reuse-window
display-buffer-reuse-mode-window
display-buffer-in-side-window)
(side . right)
(slot . 0)
(window-parameters . ((no-delete-other-windows . t)))
(window-width . 0.45)))
I used the following code to fix the issue in my config - presumably a similar fix could be applied to this repository:
The
switch-to-buffer-obey-display-actions
variable makes switch-to-buffer behave like display-buffer. I've been experimenting with this setting to make my window management more consistent. However this makes poly-mode misbehave.When using ChatGPT.el which uses poly-mode, I found that whenever I put the cursor onto a new span (ie. moving from english text to a C# code region), a separate window would pop up for that region, instead of replacing the current buffer.
The following configuration is what caused the issue to occur:
I used the following code to fix the issue in my config - presumably a similar fix could be applied to this repository:
The text was updated successfully, but these errors were encountered: