home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / gnu / emacs / help / 3514 < prev    next >
Encoding:
Internet Message Format  |  1992-07-27  |  1.7 KB

  1. Path: sparky!uunet!iWarp.intel.com|inews!cad625!rcox
  2. From: rcox@cad625.intel.edu (Richard Cox)
  3. Newsgroups: gnu.emacs.help
  4. Subject: Re: TAB key in (C Fill) mode
  5. Message-ID: <12518@inews.intel.com>
  6. Date: 27 Jul 92 22:25:21 GMT
  7. References: <1992Jul22.163405.12632@ccd.harris.com> <LFK.92Jul24223655@kerbit.uts.amdahl.com>
  8. Sender: news@inews.intel.com
  9. Reply-To: rcox@scdt.intel.com
  10. Organization: Intel Corporation
  11. Lines: 25
  12.  
  13. There is also a package c++-mode.el at archive.cis.ohio-state.edu in
  14. /pub/gnu/emacs/elisp-archive which handles this well.  It does standard
  15. c-mode formatting ++ some extras for c++.  One thing is does is changes
  16.  
  17. c++-tab-always-indent as follows:
  18.  
  19. *Controls the operation of the TAB key.
  20. t means always just reindent the current line.  nil means indent the
  21. current line only if point is at the left margin or in the line's
  22. indentation; otherwise insert a tab.  If not-nil-or-t, then the line
  23. is first reindented, then if the indentation hasn't changed, a tab is
  24. inserted. This last mode is useful if you like to add tabs after the #
  25. of preprocessor commands.
  26.  
  27.  
  28. -Rich
  29. -- 
  30. +-----------------------------------------------------------------------------+
  31. |Rich Cox                                              E-Mail: rcox@scdt.intel.com           |
  32. |CAD Developer                             AOL: Rich Kid                      |
  33. |Intel Corp.                     Mailstop: SC3-39               |
  34. |                                        Phone: (408) 765-5199              |
  35. |-----------------------------------------------------------------------------+
  36. | These opinions are shared by everyone, I asked them...                      |
  37. +-----------------------------------------------------------------------------+
  38.