help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: kill-buffer and delete-frame


From: tcp
Subject: Re: kill-buffer and delete-frame
Date: Sat, 31 Aug 2002 03:17:34 GMT

Thanks all!

"Le Wang" <lewang(at@)yahoo.com> wrote in message
news:address@hidden
> tcp wrote:
>
> > hi all,
> >
> >   I normally open file in a new frame. I would like to know how can I
> >   kill the file and the frame at the same instead of doing:
> >
> >     (kill-buffer BUFFER)
> >     (delete-frame)
> >
> >   Thanks!
>
> Make your own function, bind it to a key for easy access:
>
> (defun kill-this-buffer-and-frame ()
>   (interactive)
>   (kill-this-buffer)
>   (delete-frame))
>
> (global-set-key [(f2)] 'kill-this-buffer-and-frame)
>
> HTH.
>
> --
> Le




reply via email to

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