home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / gnu / emacs / help / 3806 < prev    next >
Encoding:
Text File  |  1992-08-21  |  1011 b   |  28 lines

  1. Path: sparky!uunet!mcsun!uknet!doc.ic.ac.uk!news!dbh
  2. From: dbh@doc.ic.ac.uk (Denis Howe)
  3. Newsgroups: gnu.emacs.help
  4. Subject: Re: delete-all-buffers?
  5. Message-ID: <DBH.92Aug21153257@wombat.doc.ic.ac.uk>
  6. Date: 21 Aug 92 14:32:57 GMT
  7. References: <1992Aug18.141726.4044@bernina.ethz.ch>
  8.     <HOLLEN.92Aug18120152@peg.megatek.UUCP> 
  9.     <RATINOX.92Aug19140605@splinter.coe.northeastern.edu>
  10.     <170jknINNjfq@wendy-fate.UU.NET>
  11.     <RATINOX.92Aug20211658@splinter.coe.northeastern.edu>
  12. Organization: Computing Department, Imperial College, London, UK
  13. Lines: 11
  14. NNTP-Posting-Host: wombat.doc.ic.ac.uk
  15. In-reply-to: ratinox@splinter.coe.northeastern.edu's message of 21 Aug 92 01:16:58 GMT
  16.  
  17. Here's a little function I use a lot:
  18.  
  19. (defun kill-current-buffer () "Kill the current buffer & its window"
  20.   (interactive)
  21.   (kill-buffer ())
  22.   (or (one-window-p) (delete-window)))
  23.  
  24. (define-key ctl-x-map  "\C-K"        'kill-current-buffer)
  25. --
  26. Denis Howe <dbh@doc.ic.ac.uk>
  27. So Biggs, you're the idiot who bought all these IBM PCs.  You're fired!
  28.