unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* kill other buffer
@ 2013-04-22 18:58 Rami A
       [not found] ` <CAKZYFdbKLjdekVTBgZh3HSOzLSLfm5RJGSh2FFHC7aVp9ZiYhA@mail.gmail.com>
  2013-04-22 22:41 ` Thorsten Jolitz
  0 siblings, 2 replies; 5+ messages in thread
From: Rami A @ 2013-04-22 18:58 UTC (permalink / raw)
  To: help-gnu-emacs

Greetings,
I usually start emacs with split screen horizontally.
I have F3 programmed to kill-this-buffer "kills the current buffer without confirmation"

How would I have [S-F3] programmed to kill the buffer in the other window without confirmation and without deleting the window itself? "I would like to keep emacs split horizontally".

Thanks.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: kill other buffer
       [not found] ` <CAKZYFdbKLjdekVTBgZh3HSOzLSLfm5RJGSh2FFHC7aVp9ZiYhA@mail.gmail.com>
@ 2013-04-22 21:28   ` Valentin Plechinger
       [not found]   ` <mailman.24480.1366666113.855.help-gnu-emacs@gnu.org>
  1 sibling, 0 replies; 5+ messages in thread
From: Valentin Plechinger @ 2013-04-22 21:28 UTC (permalink / raw)
  To: help-gnu-emacs

[-- Attachment #1: Type: text/plain, Size: 951 bytes --]

(defun kill-other-buffer ()
  (interactive)
  (other-window 1)
  (kill-this-buffer)
  (other-window 1))

with more windows you'd have to rewrite it, so probably not the most
elegant solution


On Mon, Apr 22, 2013 at 11:26 PM, Valentin Plechinger <
v.plechinger@gmail.com> wrote:

> (defun kill-other-buffer ()
>   (interactive)
>   (other-window 1)
>   (kill-this-buffer)
>   (other-window 1))
>
> with more windows you'd have to rewrite it, so probably not the most
> elegant solution
>
>
>
> On Mon, Apr 22, 2013 at 8:58 PM, Rami A <rami.ammari@gmail.com> wrote:
>
>> Greetings,
>> I usually start emacs with split screen horizontally.
>> I have F3 programmed to kill-this-buffer "kills the current buffer
>> without confirmation"
>>
>> How would I have [S-F3] programmed to kill the buffer in the other window
>> without confirmation and without deleting the window itself? "I would like
>> to keep emacs split horizontally".
>>
>> Thanks.
>>
>
>

[-- Attachment #2: Type: text/html, Size: 1872 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: kill other buffer
       [not found]   ` <mailman.24480.1366666113.855.help-gnu-emacs@gnu.org>
@ 2013-04-22 22:05     ` Rami A
  2013-04-22 23:36       ` Valentin Plechinger
  0 siblings, 1 reply; 5+ messages in thread
From: Rami A @ 2013-04-22 22:05 UTC (permalink / raw)
  To: help-gnu-emacs

Thanks a lot Valentin. That works great!


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: kill other buffer
  2013-04-22 18:58 kill other buffer Rami A
       [not found] ` <CAKZYFdbKLjdekVTBgZh3HSOzLSLfm5RJGSh2FFHC7aVp9ZiYhA@mail.gmail.com>
@ 2013-04-22 22:41 ` Thorsten Jolitz
  1 sibling, 0 replies; 5+ messages in thread
From: Thorsten Jolitz @ 2013-04-22 22:41 UTC (permalink / raw)
  To: help-gnu-emacs

Rami A <rami.ammari@gmail.com> writes:

> How would I have [S-F3] programmed to kill the buffer in the other window
> without confirmation and without deleting the window itself? "I would like to
> keep emacs split horizontally".

you could try 'winner-mode' and bind [S-F3] to winner-undo, that would
not kill the other buffer, but go back to the last window configuration(s),
that might show other buffers in the other window and thus hide the current
buffer in that window. 

-- 
cheers,
Thorsten




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: kill other buffer
  2013-04-22 22:05     ` Rami A
@ 2013-04-22 23:36       ` Valentin Plechinger
  0 siblings, 0 replies; 5+ messages in thread
From: Valentin Plechinger @ 2013-04-22 23:36 UTC (permalink / raw)
  To: help-gnu-emacs

[-- Attachment #1: Type: text/plain, Size: 143 bytes --]

Glad I could help you.


On Tue, Apr 23, 2013 at 12:05 AM, Rami A <rami.ammari@gmail.com> wrote:

> Thanks a lot Valentin. That works great!
>

[-- Attachment #2: Type: text/html, Size: 449 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-04-22 23:36 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-22 18:58 kill other buffer Rami A
     [not found] ` <CAKZYFdbKLjdekVTBgZh3HSOzLSLfm5RJGSh2FFHC7aVp9ZiYhA@mail.gmail.com>
2013-04-22 21:28   ` Valentin Plechinger
     [not found]   ` <mailman.24480.1366666113.855.help-gnu-emacs@gnu.org>
2013-04-22 22:05     ` Rami A
2013-04-22 23:36       ` Valentin Plechinger
2013-04-22 22:41 ` Thorsten Jolitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).