[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: shell-mode window action
From: |
Clément Pit--Claudel |
Subject: |
Re: shell-mode window action |
Date: |
Wed, 7 Dec 2016 17:02:57 -0500 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 |
IIRC this was changed in Emacs 25. I use this:
(defun sh (arg)
(interactive "P")
(let ((same-window-regexps '("shell")))
(call-interactively #'shell)))
Clément.
On 2016-12-07 16:34, Christopher Stacy wrote:
> When starting a shell-mode buffer,
> some people prefer not to split the existing window,
> if it wasn't already split.
>
> 324a325,328
>> (defvar shell-mode-buffer-action nil
>> "display-buffer action for shell mode.
>> For example, '(display-buffer-use-some-window).")
>>
> 647a652
>>
> 722c727,728
> < (pop-to-buffer buffer)
> ---
>>
>> (pop-to-buffer buffer shell-mode-buffer-action)
> 737a744,745
>>
>>
>
>
signature.asc
Description: OpenPGP digital signature