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: Oleg Pykhalov
Subject: Re: [ shell buffer ] How not to split the current window?
Date: Wed, 30 Aug 2017 22:38:18 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux)

HASM <address@hidden> writes:

>> since a previous update, when using M-x shell, the shell opens in a new
>> buffer, splitting the window.
>
> You could do:
>
>   (add-hook 'shell-mode-hook 'delete-other-windows)
>
> but that will only work the first time that "shell" buffer is created,
> not if there is one already.

Also you could make a key binding to (switch-to-buffer "*shell*").

> For the later case you may need to change the shell defun and add a call
> to delete-other-windows after the pop-to-buffer (though I didn't test
> it.)



reply via email to

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