home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: gnu.emacs.help
- Path: sparky!uunet!ulowell!ulowell.ulowell.edu!msanghvi
- From: msanghvi@cs.ulowell.edu (Mehul Sanghvi)
- Subject: help with C-mode variables
- Message-ID: <MSANGHVI.92Nov16004155@cs.ulowell.edu>
- Sender: usenet@ulowell.ulowell.edu (News manager - ulowell)
- Reply-To: msanghvi@cs.ulowell.edu
- Organization: UMass-Lowell Comp. Sci. Dept.
- Distribution: gnu
- Date: Mon, 16 Nov 1992 05:41:55 GMT
- Lines: 50
-
-
- hello folks!!
-
- i needed some help with the indenting in C-mode of emacs. this will
- probably turn out to be simple, but for some reason i have not been able to
- figure it out.
-
- here's my problem:
-
- STYLE I WANT STYLE I GET
-
- void void
- foo( int bar ) foo( int bar )
- { {
- ..... .....
- ..... .....
- ..... .....
-
- } }
-
- what i want is for foo( .... ) to start in column 0 not get indented 2
- spaces. this happens as soon as i hit the "{" left-curly-brace key. what
- changes do i need to make to my settings ( given below ) to get the result i
- want. pls reply by email as i dont read thhis group often enuf
-
- ;; 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
-
- "However," replied the Universe, "the fact has not created in me a
- sense of obligation."
- -- Stephen Crane
- Parkinson's Fifth Law:
- If there is a way to delay in important decision, the good
- bureaucracy, public or private, will find it.
-