home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / gnu / emacs / help / 4803 < prev    next >
Encoding:
Text File  |  1992-11-15  |  2.1 KB  |  63 lines

  1. Newsgroups: gnu.emacs.help
  2. Path: sparky!uunet!ulowell!ulowell.ulowell.edu!msanghvi
  3. From: msanghvi@cs.ulowell.edu (Mehul Sanghvi)
  4. Subject: help with C-mode variables
  5. Message-ID: <MSANGHVI.92Nov16004155@cs.ulowell.edu>
  6. Sender: usenet@ulowell.ulowell.edu (News manager - ulowell)
  7. Reply-To: msanghvi@cs.ulowell.edu
  8. Organization: UMass-Lowell Comp. Sci. Dept.
  9. Distribution: gnu
  10. Date: Mon, 16 Nov 1992 05:41:55 GMT
  11. Lines: 50
  12.  
  13.  
  14. hello folks!!
  15.  
  16.    i needed some help with the indenting in C-mode of emacs. this will
  17. probably turn out to be simple, but for some reason i have not been able to
  18. figure it out.
  19.  
  20. here's my problem:
  21.  
  22. STYLE I WANT                        STYLE I GET
  23.  
  24. void                    void
  25. foo( int bar )                  foo( int bar )
  26. {                    {
  27.   .....                      .....
  28.   .....                      .....
  29.   .....                      .....
  30.  
  31. }                    }
  32.  
  33. what i want is for foo( .... ) to start in column 0 not get indented 2
  34. spaces. this happens as soon as i hit the "{" left-curly-brace key. what
  35. changes do i need to make to my settings ( given below ) to get the result i
  36. want. pls reply by email as i dont read thhis group often enuf
  37.  
  38. ;; C-mode variables
  39. (setq c-argdecl-indent 0)            ;; old file had 5
  40. (setq c-auto-newline t)
  41. ;(setq c-brace-imaginary-offset 0)   ;; old file had this uncommented
  42. (setq c-brace-offset -2)             ;; old file had 2
  43. ;(setq c-continued-brace-offset 0)   ;; old file had it uncommented
  44. (setq c-continued-statement-offset 2) 
  45. (setq c-indent-level 2)
  46. (setq c-label-offset -2)
  47. (setq c-tab-always-indent t)
  48.  
  49.  
  50. --
  51. ===============================================================================
  52. Mehul "raja lakhan" Sanghvi        |  UMass-Lowell Dept. of Computer Science
  53. Inet: msanghvi@cs.ulowell.edu      |  SnailNet: 754 Aiken St. #11
  54. UUCP: ...!harvard!ulowell!msanghvi |            Lowell, MA 01850-1804
  55. BITNET: msanghvi%cs.ulowell.edu@{cunyvm.cuny, mitvma.mit, talcott.harvard}.edu
  56.  
  57. "However," replied the Universe, "the fact has not created in me a
  58. sense of obligation."
  59.         -- Stephen Crane
  60. Parkinson's Fifth Law:
  61.     If there is a way to delay in important decision, the good
  62.     bureaucracy, public or private, will find it.
  63.