home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / emacs / 2882 < prev    next >
Encoding:
Text File  |  1992-08-18  |  1.1 KB  |  38 lines

  1. Newsgroups: comp.emacs
  2. Path: sparky!uunet!ftpbox!mothost!merlin.dev.cdx.mot.com!fendahl.dev.cdx.mot.com!mcook
  3. From: mcook@fendahl.dev.cdx.mot.com (Michael Cook)
  4. Subject: Re: BAD, bad, bad TABS in emacs
  5. Message-ID: <mcook.714152831@fendahl.dev.cdx.mot.com>
  6. Sender: news@merlin.dev.cdx.mot.com (USENET News System)
  7. Nntp-Posting-Host: fendahl.dev.cdx.mot.com
  8. Organization: Motorola Codex, Canton, Massachusetts
  9. References: <1992Aug18.115111.17395@lth.se>
  10. Date: Tue, 18 Aug 1992 15:47:11 GMT
  11. Lines: 25
  12.  
  13. kurt@dna.lth.se (Kurt Swanson) writes:
  14.  
  15. >I would like emacs to rid my life of control-i's.  Does anyone know of
  16. >any emacs means to:
  17.  
  18. >a: redefine the tab key such that it inserts the right number of
  19. >   spaces, i.e. 1-8 depending on the tab stops and current cursor
  20. >   column
  21.  
  22. Put this in your ~/.emacs:
  23.  
  24.   (setq-default indent-tabs-mode nil)
  25.  
  26. >and/or
  27.  
  28. >b: search a whole buffer, replacing control-i's with the same scheme
  29. >   of spaces.
  30.  
  31.   M-< M-> M-x untabify RET
  32.  
  33. >Any ideas?
  34. >Kurt Swanson, Dept. of Computer Science,
  35. >Lunds universitet.  Kurt.Swanson@dna.lth.se
  36.  
  37. Michael.
  38.