home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / gnu / emacs / help / 3698 next >
Encoding:
Text File  |  1992-08-12  |  1.5 KB  |  38 lines

  1. Newsgroups: gnu.emacs.help
  2. Path: sparky!uunet!pipex!demon!edscom.demon.co.uk!kevin
  3. From: kevin@edscom.demon.co.uk (Kevin Broadey)
  4. Subject: Re: How to do set ts=4
  5. In-Reply-To: mah@fjmah.att.com's message of 6 Aug 92 21:47:30 GMT
  6. Message-ID: <KEVIN.92Aug12084534@buffalobill.edscom.demon.co.uk>
  7. Sender: kevin@edscom.demon.co.uk (Kevin Broadey)
  8. Organization: EDS-Scicon, Milton Keynes, UK
  9. References: <MAH.92Aug5141906@fjmah.att.com> <1992Aug6.153913.146@cbfsb.cb.att.com>
  10.     <ETHANB.92Aug6131237@ptolemy.astro.washington.edu>
  11.     <MAH.92Aug6164730@fjmah.att.com>
  12. Date: Wed, 12 Aug 1992 08:45:34 GMT
  13. Lines: 23
  14.  
  15. In article <MAH.92Aug6164730@fjmah.att.com> mah@fjmah.att.com (54628-M. Hargrove) writes:
  16.  
  17.    Thank you both for your replies.
  18.  
  19.    Setting c-indent-level doesn't seem to work in the middle of your
  20.    emacs session (I realize you didn't say it did).  My original question
  21.    was how to do :set ts=4.  I wasn't specific enough but I did mean
  22.    "how do I do it any time".  I have some files where tab stops are
  23.    meant to be at 8 in some places and 4 at other places so I need to
  24.    flip back and forth between 8 and 4.
  25.  
  26.    Messy, I know.
  27.  
  28.    Any more ideas?
  29.  
  30. You could try "M-x set-variable tab-width 4".  This seems to do exactly what I
  31. think you want.  Note that the variable is made buffer-local the moment you do
  32. anything to it.  See also `default-tab-width'.
  33. -- 
  34. Kevin Broadey, EDS-Scicon
  35. Mail:    Wavendon Tower, Wavendon, Milton Keynes, MK17 8LX, England
  36. E-mail: kbroadey@edscom.demon.co.uk
  37. Phone:    +44 908 284198 or +44 908 585858 ext 4198
  38.