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

  1. Newsgroups: gnu.emacs.help
  2. Path: sparky!uunet!think.com!rpi!zaphod.mps.ohio-state.edu!magnus.acs.ohio-state.edu!ksampath
  3. From: ksampath@magnus.acs.ohio-state.edu (Krishna S Sampath)
  4. Subject: Re: help with C-mode variables
  5. Message-ID: <1992Nov16.143412.12877@magnus.acs.ohio-state.edu>
  6. Sender: news@magnus.acs.ohio-state.edu
  7. Nntp-Posting-Host: bottom.magnus.acs.ohio-state.edu
  8. Organization: The Ohio State University
  9. References: <MSANGHVI.92Nov16004155@cs.ulowell.edu>
  10. Distribution: gnu
  11. Date: Mon, 16 Nov 1992 14:34:12 GMT
  12. Lines: 46
  13.  
  14. In article <MSANGHVI.92Nov16004155@cs.ulowell.edu> msanghvi@cs.ulowell.edu writes:
  15. >
  16. >here's my problem:
  17. >
  18. >STYLE I WANT                        STYLE I GET
  19. >
  20. >void                    void
  21. >foo( int bar )                  foo( int bar )
  22. >{                    {
  23. >  .....                      .....
  24. >
  25. >}                    }
  26. >
  27. >
  28. >;; C-mode variables
  29. >(setq c-argdecl-indent 0)            ;; old file had 5
  30. >(setq c-auto-newline t)
  31. >;(setq c-brace-imaginary-offset 0)   ;; old file had this uncommented
  32. >(setq c-brace-offset -2)             ;; old file had 2
  33. >;(setq c-continued-brace-offset 0)   ;; old file had it uncommented
  34. >(setq c-continued-statement-offset 2) 
  35. >(setq c-indent-level 2)
  36. >(setq c-label-offset -2)
  37. >(setq c-tab-always-indent t)
  38. >
  39. >--
  40. >===============================================================================
  41. >Mehul "raja lakhan" Sanghvi        |  UMass-Lowell Dept. of Computer Science
  42. >Inet: msanghvi@cs.ulowell.edu      |  SnailNet: 754 Aiken St. #11
  43. >UUCP: ...!harvard!ulowell!msanghvi |            Lowell, MA 01850-1804
  44. >BITNET: msanghvi%cs.ulowell.edu@{cunyvm.cuny, mitvma.mit, talcott.harvard}.edu
  45. >
  46.  
  47. not a reply but an extension to the above question....(sorry mehul :-)
  48.  
  49. is there any way to set these variables automatically? like if you are 
  50. editing two c programs with different indentations, it would be very
  51. convenient to not fight with these variables every single time....
  52.  
  53. krishna
  54.  
  55. -- 
  56. krishna s. sampath....graduate research assoc.....kss@ampere.eng.ohio-state.edu
  57. ohio state u, electroscience lab......(614) 292-7981 (w)....(614) 292-7297  (f)
  58. 1320 kinnear rd, columbus, oh 43212...(614) 293-0913 (h)...011-91-4542-4127 (H)
  59. -------------------------------------------------------------------------------
  60.