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 >
Wrap
Text File
|
1989-03-20
|
2KB
|
81 lines
Name:C:C-newlevel
This will open a new level of C code braces.
[*]
Name:C:Cnewline-and-indent
C mode newline with auto indent, current indent level, and if breaking a line
then indent it a little more.
[*]
Name:C:Crbrace
If we are putting our } on a line of code the just flash it, otherwise match
the indenting of the open { and then flash it.
[*]
Name:C:Ctab
This will indent the C line to the appropriate amount or insert #(Ctabs) if EOL
[*]
Name:Ccurrent-indent
Return the indenting of the previous open {.
[*]
Name:Cfilename
This describes the MINT EMACS C mode by Johnathan Vail
The code here is to be given freely to all Freemacs users. This C
mode provides the following features:
o Automatic left-curly-matching and proper indenting for the
right brace.
o "Intelligent" auto-indenting (follow indenting level of current
open left brace plus Ctabs).
o Selectable tab size with the variable Ctabs.
o A new level command for opening new levels of code.
KEYS in C mode:
Return -- Return will open a new line and if auto-indent is on it
will indent the proper amount for the current level.
If breaking a line it will indent a little more.
Tab -- If at the end of a line Tab inserts a <TAB> (^I).
Otherwise the line is re-indented to the proper amount.
} -- If on a line of code this simply shows the matching
open {. Otherwise it will indent itself to the proper
depth and show the matching open {.
M-{ -- This open a new level by inserting both a { and a } and
opening a line in between, indented to the proper amount.
OPERATION:
When a .c or .h file is visited C mode is invoked. Otherwise it
can be entered by M-X C-mode. A new function, Fun-mode will set
Fun)damental as the major mode (I changed my Fundamental to Fun). My
default is to use a <TAB> to denote a new level. If you do not like this
then you can change the variable #(Ctabs) to be whatever whitespace you
like. Notice also that if you override the indenting that the subsequent
indenting will follow. Also notice that it doesn't matter where on the
line the { is. Anyway, SHARE and ENJOY.
Johnathan Vail, N1DXG
Data General, Durham NH (603) 862-6562
vail_j@dur08.ceo.dg.com
[*]
Name:Cget-indent
Return the indenting of the current line.
[*]
Name:Ctabs
A function that returns the indentation string.
[*]