home *** CD-ROM | disk | FTP | other *** search
/ The C Users' Group Library 1994 August / wc-cdrom-cusersgrouplibrary-1994-08.iso / vol_100 / 198_01 / emacs.key < prev    next >
Text File  |  1990-01-23  |  9KB  |  224 lines

  1.         Default Key Bindings for MicroEmacs 3.9    (09/06/89)
  2.         =======================================
  3.  
  4.  ^A   Move to start of line           ESC A   Apropos (list some commands)
  5.  ^B   Move backward by characters     ESC B   Backup by words
  6.  ^C   Insert space                    ESC C   Initial capitalize word
  7.  ^D   Forward delete                  ESC D   Delete forward word
  8.  ^E   Goto end of line                ESC E   Reset Encryption Key
  9.  ^F   Move forward by characters      ESC F   Advance by words
  10.  ^G   Abort out of things             ESC G   Go to a line
  11.  ^H   Backward delete                 
  12.  ^I   Insert tab/Set tab stops
  13.  ^J   Insert CR-LF, then indent       ESC J   Fill current paragraph
  14.  ^K   Kill forward                    ESC K   Bind Key to function
  15.  ^L   Refresh the screen              ESC L   Lower case word
  16.  ^M   Insert CR-LF                    ESC M   Add global mode
  17.  ^N   Move forward by lines           ESC N   Goto End paragraph
  18.  ^O   Open up a blank line            
  19.  ^P   Move backward by lines          ESC P   Goto Begining of paragraph
  20.  ^Q   Insert literal                  ESC Q   Fill current paragraph
  21.  ^R   Search backwards                ESC R   Search and replace
  22.  ^S   Search forward                  ESC S   Suspend MicroEMACS (VMS&BSD only)
  23.  ^T   Transpose characters
  24.  ^U   Repeat command four times       ESC U   Upper case word
  25.  ^V   Move forward by pages           ESC V   Move backward by pages
  26.  ^W   Kill region                     ESC W   Copy region to kill buffer
  27.  ^Y   Yank back from killbuffer       ESC X   Execute named command
  28.  ^Z   Move backward by pages          ESC Z   Save all buffers and exit
  29.  ^@   Set mark
  30.  
  31.  ESC ^B   Goto matching fence
  32.  ESC ^C   Count words in region       ESC ~   Unmark current buffer
  33.  ESC ^F   Goto matching fence         ESC !   Reposition window
  34.  ESC ^H   Delete backward word        ESC <   Move to start of buffer
  35.  ESC ^K   Unbind Key from function    ESC >   Move to end of buffer
  36.  ESC ^L   Reposition window           ESC .   Set mark
  37.  ESC ^M   Delete global mode          ESC ?   Fetch HELP file to buffer
  38.  ESC ^N   Rename current buffer       ESC space    Set mark
  39.  ESC ^R   Search & replace w/query    ESC rubout   Delete backward word
  40.  ESC ^S   Change screen rows              rubout   Backward delete
  41.  ESC ^T   Change screen columns
  42.  ESC ^V   Scroll next window down
  43.  ESC ^W   Delete Paragraph
  44.  ESC ^Z   Scroll next window up
  45.  
  46.  ^X ?   Describe a key             ^X !   Run 1 command in a subjob
  47.  ^X =   Show the cursor position   ^X @   Pipe DOS command to buffer
  48.  ^X ^   Enlarge display window     ^X #   Filter buffer thru DOS filter
  49.  ^X 0   Delete current window      ^X $   Run 1 command in a subjob
  50.  ^X 1   Delete other windows       ^X space    Remove mark
  51.  ^X 2   Split current window
  52.  ^X 4   Find file into another window
  53.  ^X (   Begin macro           ^X <   Narrow buffer to region
  54.  ^X )   End macro           ^X >   Widen buffer
  55.  
  56.                                    ^X A   Set variable value
  57.  ^X ^B   Display buffer list       ^X B   Switch a window to a buffer
  58.  ^X ^C   Exit MicroEMACS           ^X C   Start a new command processer
  59.  ^X ^D   Detab a line              ^X D   Suspend MicroEMACS (BSD4.2 only)
  60.  ^X ^E   Entab a line              ^X E   Execute macro
  61.  ^X ^F   Find file                 ^X F   Set fill column
  62.                                    ^X G   Display a variable
  63.  ^X ^I   Insert file
  64.                                    ^X K   Delete buffer
  65.  ^X ^L   Lower case region
  66.  ^X ^M   Delete Mode               ^X M   Add a mode
  67.  ^X ^N   Move window down          ^X N   Rename current filename
  68.  ^X ^O   Delete blank lines        ^X O   Move to the next window
  69.  ^X ^P   Move window up            ^X P   Move to the previous window
  70.  ^X ^R   Get a file from disk      ^X R   Incremental reverse search
  71.  ^X ^S   Save current file         ^X S   Incremental forward search
  72.  ^X ^T   Trim whitespace on a line
  73.  ^X ^U   Upper case region
  74.  ^X ^V   View file
  75.  ^X ^W   Write a file to disk      ^X W   resize Window
  76.  ^X ^X   Swap "." and mark         ^X X   Use next buffer
  77.  ^X ^Z   Shrink window             ^X Z   Enlarge display window
  78.  
  79. Only under PCDOS:
  80.  <ALT>-S Hunt forward        SHIFT <F1> - <F10>
  81.  <ALT>-R Hunt backward           Execute macroes 1 - 10
  82.  
  83. Some unbound commands:
  84. ======================
  85. append-and-kill-region    kill region and append it to the kill buffer
  86. append-and-copy-region    append region to kill buffer
  87. case-region-change    change the case in a region
  88. clear-mark        clear the mark
  89. character-to-octal-insert insert a C octal escape sequence for next key pressed
  90. describe-bindings    pull the list of current bindings into a window
  91. describe-functions    pull the list of function names into a window
  92. describe-variables    pull the list of variables into a window
  93. execute-buffer        execute a buffer of command lines
  94. execute-command-line    execute a command line (n <command> <args>)
  95. execute-file        execute a file of command lines
  96. execute-named-command    execute a command by name (w/command completion)
  97. execute-macro-[1-40]    execute macroes 1 thru 40
  98. hunt-forward        find next occurance of search string
  99. hunt-backward        find last occurance of search string
  100. revert-file        replaces the current file with the last saved version
  101. string-length        show length of string
  102. write-region        write the region to a file
  103.  
  104. Usable Modes
  105. ============
  106. WRAP     Lines going past right margin "wrap" to a new line
  107. CMODE    Change behavior of some commands to work with C better
  108. EXACT    Exact case matching on search strings
  109. VIEW     Read-Only mode where no modifications are allowed
  110. OVER     Overwrite typed characters instead of inserting them
  111. MAGIC    Use regular expresion matching in searches
  112. CRYPT    Current buffer will be encrypted on write, decrypted on read
  113. ASAVE    Automatically write file after $asave changes
  114. BINARY   Read and write binary files under MSDOS
  115.  
  116. WHITE/CYAN/MAGENTA/YELLOW/BLUE/RED/GREEN/BLACK    Sets foreground color
  117. white/cyan/magenta/yellow/blue/red/green/black    Sets background color
  118.  
  119. MAGIC MODE special characters
  120. =============================
  121. ^    Anchor search at beginning of line
  122. $    Anchor search at end of line
  123. .    Match any character except <NL>
  124. *    Match zero or more of the preceeding character
  125. []    Match a class of characters ([a-z] would be all alphabetics)
  126. \    Take next literally
  127. &    Matched pattern (replacement string only)
  128.  
  129. System Environment Variables (precede with $)
  130. =============================================
  131. fillcol        current fill column
  132. pagelen        number of lines used by editor
  133. curcol        current column pos of cursor
  134. curline        current line in file
  135. ram        ram in use by malloc
  136. flicker        flicker supression
  137. curwidth    current screen width
  138. cbufname    current buffer name
  139. cfname        current file name
  140. sres        current screen resolution
  141. debug        macro debugging
  142. status        returns the status of the last command
  143. palette        current palette string
  144. asave        # of chars between auto-saves
  145. acount        # of chars until next auto-save
  146. lastkey        last keyboard char struck
  147. curchar        current character under the cursor
  148. discmd        display commands on command line
  149. version        current version number
  150. progname    returns current prog name - "MicroEMACS"
  151. seed        current random number seed
  152. disinp        display command line input characters
  153. wline        # of lines in current window
  154. cwline        current screen line in window
  155. target        target for line moves
  156. search        search pattern
  157. replace        replacement pattern
  158. match        last matched magic pattern
  159. kill        kill buffer (read only)
  160. cmode        mode of current buffer
  161. gmode        global modes
  162. tpause        length to pause for paren matching
  163. pending        type ahead pending flag
  164. lwidth        width of current line
  165. line        text of current line
  166. advance        EDT emulation advance/backup flag
  167. vt100key    when set, the next character after an escape is always read
  168. hardtab        the amount that a TAB character should move
  169. softtab        the size for the insert-tab command
  170. hscroll        horizontal scrolling
  171. hjump        number of spaces to jump during a horizontal scroll
  172. cbflags        flags for the current buffer (invis, changed, trunc, narrow)
  173.  
  174. Macro Fumctions (precede with &)
  175. ================================
  176. add    add two numbers together
  177. sub    subtraction
  178. tim    multiplication
  179. div    division
  180. mod    mod
  181. neg    negate
  182. cat    concatinate string
  183. lef    left string(string, len)
  184. rig    right string(string, pos)
  185. mid    mid string(string, pos, len)
  186. not    logical not
  187. equ    logical equality check
  188. les    logical less than
  189. gre    logical greater than
  190. seq    string logical equality check
  191. sle    string logical less than
  192. sgr    string logical greater than
  193. ind    evaluate indirect value
  194. and    logical and
  195. or    logical or
  196. len    string length
  197. upp    uppercase string
  198. low    lower case string
  199. tru    Truth of the universe logical test
  200. asc    char to integer conversion
  201. chr    integer to char conversion
  202. gtk    1 charater
  203. rnd    get a random number
  204. abs    absolute value of a number
  205. sin    find the index of one string in another
  206. env    retrieve a system environment var
  207. bin    lookup what function name is bound to a key
  208. gtc    get a command
  209. ban    binary and
  210. bor    binary or
  211. bxo    binary xor
  212. bno    binary not
  213.  
  214. Command line options
  215. ====================
  216. -c        clears VIEW mode
  217. -g<#>        goto line number <#>
  218. -i<var> <value>    initialize variable <var> to value <value>
  219. -k<key>        set encryption key to <key>
  220. -r        set restricted flag
  221. -s<pat>        goto first occurence of pattern <pat>
  222. -v        set VIEW mode
  223.  
  224.