help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ shell buffer ] How not to split the current window?


From: Michael Heerdegen
Subject: Re: [ shell buffer ] How not to split the current window?
Date: Thu, 31 Aug 2017 12:41:12 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux)

Philippe Chauvat <pchauvat@laposte.net> writes:

> M-x shell (redefined) = M-x shell (current version splitting the buffer)
> + C-x 1 (making the shell buffer the only one displayed).

I would still do that with `display-buffer-alist' (instead of advising
the function), e.g.

(add-to-list
 'display-buffer-alist
 `("^\\*shell\\*" .
   (,(defun my-display-shell-buffer-whole-frame (buffer alist)
       (prog1 (display-buffer-same-window buffer alist)
         (delete-other-windows))))))


Michael.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]