¿Cómo forzar a Emacs a no mostrar el búfer en una ventana específica?
Mi configuración de Windows se ve así:
<code> +----------+-----------+ | | | | | | | | | | | | | | | | +-----------+ | | | +----------+-----------+ </code>
Y utilizo la ventana inferior derecha para pantallas especiales (como ayuda, finalización, etc.), pero Emacs insiste en usar esa ventana cuando llamo comandos (find-file-other-window
, etc.) que usandisplay-buffer
, y cambiar el tamaño de esa ventana también. Es molesto ... ¿Hay alguna manera de forzar a emacs a NO usar esas ventanas? Estaba pensando en aconsejardisplay-buffer
, pero es una función en c. Tiene alguna idea sobre esto?
EDITAR:
Basado en gran medida en la respuesta de Trey, esto es lo que me funciona hasta ahora:
<code>(setq special-display-function 'my-display-buffer) (setq special-display-regexps '(".*")) (defun display-special-buffer (buf) "put the special buffers in the right spot (bottom rigt)" (let ((target-window (window-at (- (frame-width) 4) (- (frame-height) 4))) (pop-up-windows t)) (set-window-buffer target-window buf) target-window)) (defun my-display-buffer (buf) "put all buffers in a window other than the one in the bottom right" (message (buffer-name buf)) (if (member (buffer-name buf) special-display-buffer-names) (display-special-buffer buf) (progn (let ((pop-up-windows t) (windows (delete (window-at (- (frame-width) 4) (- (frame-height) 4)) (delete (minibuffer-window) (window-list))))) (message (buffer-name (window-buffer (car windows)))) (set-window-buffer (car (cdr windows)) buf) (car (cdr windows)))))) </code>