home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: gnu.emacs.help
- Path: sparky!uunet!think.com!rpi!zaphod.mps.ohio-state.edu!magnus.acs.ohio-state.edu!ksampath
- From: ksampath@magnus.acs.ohio-state.edu (Krishna S Sampath)
- Subject: Re: help with C-mode variables
- Message-ID: <1992Nov16.143412.12877@magnus.acs.ohio-state.edu>
- Sender: news@magnus.acs.ohio-state.edu
- Nntp-Posting-Host: bottom.magnus.acs.ohio-state.edu
- Organization: The Ohio State University
- References: <MSANGHVI.92Nov16004155@cs.ulowell.edu>
- Distribution: gnu
- Date: Mon, 16 Nov 1992 14:34:12 GMT
- Lines: 46
-
- In article <MSANGHVI.92Nov16004155@cs.ulowell.edu> msanghvi@cs.ulowell.edu writes:
- >
- >here's my problem:
- >
- >STYLE I WANT STYLE I GET
- >
- >void void
- >foo( int bar ) foo( int bar )
- >{ {
- > ..... .....
- >
- >} }
- >
- >
- >;; C-mode variables
- >(setq c-argdecl-indent 0) ;; old file had 5
- >(setq c-auto-newline t)
- >;(setq c-brace-imaginary-offset 0) ;; old file had this uncommented
- >(setq c-brace-offset -2) ;; old file had 2
- >;(setq c-continued-brace-offset 0) ;; old file had it uncommented
- >(setq c-continued-statement-offset 2)
- >(setq c-indent-level 2)
- >(setq c-label-offset -2)
- >(setq c-tab-always-indent t)
- >
- >--
- >===============================================================================
- >Mehul "raja lakhan" Sanghvi | UMass-Lowell Dept. of Computer Science
- >Inet: msanghvi@cs.ulowell.edu | SnailNet: 754 Aiken St. #11
- >UUCP: ...!harvard!ulowell!msanghvi | Lowell, MA 01850-1804
- >BITNET: msanghvi%cs.ulowell.edu@{cunyvm.cuny, mitvma.mit, talcott.harvard}.edu
- >
-
- not a reply but an extension to the above question....(sorry mehul :-)
-
- is there any way to set these variables automatically? like if you are
- editing two c programs with different indentations, it would be very
- convenient to not fight with these variables every single time....
-
- krishna
-
- --
- krishna s. sampath....graduate research assoc.....kss@ampere.eng.ohio-state.edu
- ohio state u, electroscience lab......(614) 292-7981 (w)....(614) 292-7297 (f)
- 1320 kinnear rd, columbus, oh 43212...(614) 293-0913 (h)...011-91-4542-4127 (H)
- -------------------------------------------------------------------------------
-