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

  1. Path: sparky!uunet!decwrl!world!ksr!harsha
  2. From: harsha@ksr.com (Paul Harsha)
  3. Newsgroups: comp.emacs
  4. Subject: Re: BAD, bad, bad TABS in emacs
  5. Message-ID: <14896@ksr.com>
  6. Date: 18 Aug 92 14:03:08 EDT
  7. References: <1992Aug18.115111.17395@lth.se>
  8. Sender: news@ksr.com
  9. Lines: 25
  10.  
  11. kurt@dna.lth.se (Kurt Swanson) writes:
  12.  
  13. >I would like emacs to rid my life of control-i's.  Does anyone know of
  14. >any emacs means to:
  15.  
  16. >a: redefine the tab key such that it inserts the right number of
  17. >   spaces, i.e. 1-8 depending on the tab stops and current cursor
  18. >   column
  19.  
  20. (setq indent-tabs-mode nil) will change it for the current buffer
  21.  
  22. (setq-default indent-tabs-mode nil) will change it for all buffers which don't
  23. already have it defined
  24.  
  25. >b: search a whole buffer, replacing control-i's with the same scheme
  26. >   of spaces.
  27.  
  28. M-x untabify
  29.  
  30. The gnuemacs manual discusses and the info file discuss both of these in
  31. detail.
  32.  
  33. -Paul
  34. --
  35.    Paul Harsha (harsha@ksr.com)               Kendall Square Research Corp.
  36.