home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / gnu / emacs / help / 4722 < prev    next >
Encoding:
Text File  |  1992-11-08  |  1.6 KB  |  35 lines

  1. Newsgroups: gnu.emacs.help
  2. Path: sparky!uunet!charon.amdahl.com!pacbell.com!sgiblab!zaphod.mps.ohio-state.edu!saimiri.primate.wisc.edu!usenet.coe.montana.edu!news.u.washington.edu!news.u.washington.edu!ethanb
  3. From: ethanb@ptolemy.astro.washington.edu (Ethan Bradford)
  4. Subject: Re: Question:  EMACS Tab Settings
  5. In-Reply-To: dsc3son@nmdsc10.med.navy.mil's message of 6 Nov 92 15:21:07 GMT
  6. To: dsc3son@nmdsc10.med.navy.mil (Sean O'Neill)
  7. Message-ID: <ETHANB.92Nov6114918@ptolemy.astro.washington.edu>
  8. Lines: 21
  9. Sender: news@u.washington.edu (USENET News System)
  10. Organization: U. of Washington
  11. References: <DSC3SON.92Nov6102107@nmdsc10.med.navy.mil>
  12. Date: Fri, 6 Nov 1992 19:49:18 GMT
  13.  
  14. You want to set the variable tab-width to 4:
  15.  
  16.         tab-width's value is 8
  17.  
  18.     Documentation:
  19.     *Distance between tab stops (for display of tab characters), in columns.
  20.     Automatically becomes local when set in any fashion.
  21.  
  22. In article <DSC3SON.92Nov6102107@nmdsc10.med.navy.mil> dsc3son@nmdsc10.med.navy.mil (Sean O'Neill) writes:
  23.  
  24.    I have a question about EMACS tabs.  I have a pre-existing document
  25.    that I wish to edit (its a Perl program).  The default tab setting in
  26.    EMACS is 8 columns per tab.  I would like 4 columns per tab.  I used
  27.    the edit-tab-stops function and changed the tabs to what I want.  The
  28.    strange thing is only tabs from that point on are effected.  I would
  29.    like for all tabs in the current buffer to be shifted over to column
  30.    4.  'Vi' does this using the ':set tabstop=4' command.  All tabs are
  31.    immediately shifted over to column 4.  Is there a function that does
  32.    this?
  33.  
  34.    HELP!
  35.