(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.