home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: gnu.emacs.help
- Path: sparky!uunet!utcsri!torn!cunews!nrcnet0!bnrgate!bcars6a8!keithh
- From: keithh@bnr.ca (Keith Hanlan)
- Subject: Re: Need help with TABith TABS & Is there a PASCAL Mode?
- Message-ID: <1992Sep10.002725.562@bcars6a8.bnr.ca>
- Keywords: emacs, TABS, PASCAL
- Sender: usenet@bcars6a8.bnr.ca (Use Net)
- Nntp-Posting-Host: bcarh10f
- Organization: Bell-Northern Research Ltd., Ottawa
- References: <1992Sep09.164543.3179@bnr.ca> <1992Sep09.171648.3781@bnr.ca>
- Date: Thu, 10 Sep 1992 00:27:25 GMT
- Lines: 28
-
- In article <1992Sep09.171648.3781@bnr.ca> mac@bnr.ca (Michael Campbell) writes:
- >Baji (and anyone else interested),
- >
- >To force emacs to do indentation with spaces only, I have the
- >following in my .emacs:
- >
- > (setq indent-tabs-mode nil)
-
- I am just learning emacs now but as soon as my proficiency picks
- up a bit here is what I am going to do:
- o set tab-width to whatever I prefer.
-
- o hook into reading in a file a function which automatically
- tabifies the file. This means assuming that the file was
- written with a tabstop of eight.
-
- o hook into writing out a file (write-file-hooks) a function
- which, depending on the type of file, either:
- o untabifies the file completely or
- o untabifies the file, resets the tab-width to eight, and
- then tabifies the file again.
-
- And then I'll never have to worry about tab-widths again!
-
- Please feel free to shoot holes in my plan or give me an
- off-the-shelf solution.
-
- Regards,
-