home *** CD-ROM | disk | FTP | other *** search
/ Mega CD-ROM 1 / megacd_rom_1.zip / megacd_rom_1 / FREEMACS / EMACS16A.ZIP / C.EDD < prev    next >
Text File  |  1989-03-20  |  2KB  |  81 lines

  1.  
  2.  
  3. Name:C:C-newlevel
  4. This will open a new level of C code braces.
  5. [*]
  6.  
  7. Name:C:Cnewline-and-indent
  8. C mode newline with auto indent, current indent level, and if breaking a line
  9. then indent it a little more.
  10. [*]
  11.  
  12. Name:C:Crbrace
  13. If we are putting our } on a line of code the just flash it, otherwise match
  14. the indenting of the open { and then flash it.
  15. [*]
  16.  
  17. Name:C:Ctab
  18. This will indent the C line to the appropriate amount or insert #(Ctabs) if EOL
  19. [*]
  20.  
  21. Name:Ccurrent-indent
  22. Return the indenting of the previous open {.
  23. [*]
  24.  
  25. Name:Cfilename
  26.        This describes the MINT EMACS C mode by Johnathan Vail
  27.  
  28.  
  29.  
  30.     The code here is to be given freely to all Freemacs users. This C
  31. mode provides the following features:
  32.  
  33.     o  Automatic left-curly-matching and proper indenting for the
  34.         right brace.
  35.  
  36.     o  "Intelligent" auto-indenting (follow indenting level of current
  37.         open left brace plus Ctabs).
  38.  
  39.     o  Selectable tab size with the variable Ctabs.
  40.  
  41.     o  A new level command for opening new levels of code.
  42.  
  43. KEYS in C mode:
  44.  
  45.     Return -- Return will open a new line and if auto-indent is on it
  46.         will indent the proper amount for the current level.
  47.         If breaking a line it will indent a little more.
  48.  
  49.       Tab  -- If at the end of a line Tab inserts a <TAB> (^I).
  50.         Otherwise the line is re-indented to the proper amount.
  51.  
  52.        }   -- If on a line of code this simply shows the matching
  53.         open {.  Otherwise it will indent itself to the proper
  54.         depth and show the matching open {.
  55.  
  56.       M-{  -- This open a new level by inserting both a { and a } and
  57.         opening a line in between, indented to the proper amount.
  58.  
  59. OPERATION:
  60.  
  61.     When a .c or .h file is visited C mode is invoked.  Otherwise it
  62. can be entered by M-X C-mode.  A new function, Fun-mode will set
  63. Fun)damental as the major mode (I changed my Fundamental to Fun).  My
  64. default is to use a <TAB> to denote a new level.  If you do not like this
  65. then you can change the variable #(Ctabs) to be whatever whitespace you
  66. like.  Notice also that if you override the indenting that the subsequent
  67. indenting will follow.  Also notice that it doesn't matter where on the
  68. line the { is.  Anyway, SHARE and ENJOY.
  69.  
  70.             Johnathan Vail, N1DXG
  71.             Data General, Durham NH (603) 862-6562
  72.             vail_j@dur08.ceo.dg.com
  73. [*]
  74.  
  75. Name:Cget-indent
  76. Return the indenting of the current line.
  77. [*]
  78.  
  79. Name:Ctabs
  80. A function that returns the indentation string.
  81. [*]