all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Oleg Pykhalov <go.wigust@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: [ shell buffer ] How not to split the current window?
Date: Wed, 30 Aug 2017 22:38:18 +0300	[thread overview]
Message-ID: <87fuc8n8wl.fsf@gmail.com> (raw)
In-Reply-To: <87k21lp2sh.fsf@127.0.0.1> (hasm@example.invalid's message of "Wed, 30 Aug 2017 07:07:26 -0700")

HASM <hasm@example.invalid> 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	other threads:[~2017-08-30 19:38 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.14045.1504100225.21957.help-gnu-emacs@gnu.org>
2017-08-30 14:07 ` [ shell buffer ] How not to split the current window? HASM
2017-08-30 19:38   ` Oleg Pykhalov [this message]
     [not found]   ` <mailman.14066.1504121908.21957.help-gnu-emacs@gnu.org>
2017-08-30 23:23     ` notbob
2017-08-31  0:00       ` John Mastro
     [not found]       ` <mailman.14080.1504137681.21957.help-gnu-emacs@gnu.org>
2017-08-31  0:04         ` notbob
2017-08-30  9:24 Philippe Chauvat
2017-08-31  1:04 ` Michael Heerdegen
2017-08-31  7:37   ` Philippe Chauvat
2017-08-31 10:41     ` Michael Heerdegen
2017-08-31 12:36       ` Philippe Chauvat

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87fuc8n8wl.fsf@gmail.com \
    --to=go.wigust@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.