Previous Next Chapter

Word Menu

The Word menu contains word-associated operations.

Delete-forw

Esc,D

Deletes the character on which the cursor is positioned and all remaining characters to the right until the next non-alphanumeric character is found, such as a blank space, tab, or punctuation.

Delete-back

Esc,H

Delets all characters to the left of the cursor until it finds the first character of a word. The character at the cursor position is not deleted. Alternative keyboard shortcut: Esc,Del.

Upper-word

Esc,U

Changes a word to upper case, starting at the cursor position and proceeding to the last character of the word.

Lower-word

Esc,L

Changes a word to lower case, starting at the cursor position and proceeding to the last character of the word.

Cap-word

Esc,C

Changes the character at the cursor position to upper case. Also changes the characters to the right of the cursor, up to the end of the word, to lower case.

Switch-case

Esc,^

Changes the case of a word, starting at the current cursor position and proceeding to the right until it reaches the end of the word. If a word is upper case or has mixed text, it changes upper to lowr case and vice versa.

Search Menu

These commands search through the current buffer for specific text strings. The case (upper or lower) of the string is not significant in the search. However, if you are using text substitution (search and replace), the text is replaced in the case of the replacement string.

Search-forward

Ctrl+S

Searches through the text starting at the current cursor position and moving forward to the end of the buffer. At the prompt, enter the character string for the search. Alternative keyboard shortcut: Ctrl+X,S.

Search-backward

Ctrl+R

Searches through the text from the current cursor position backwards to the beginning to the buffer. Alternative keyboard shortcut: Ctrl+X,R.

Search-replace

Esc,R

Searches the same as Search-forward, allowing you to replace the string with different text. At the prompt, enter the replacement string of characters.

Query-s-r

Esc,Q

Operates the same as Search-replace, except it asks for confirmation to replace each time it finds the specified string. The options are Y (yes), N (no), C (change all occurrences), and Ctrl+G (abort).

Fence-match

Esc, Ctrl+F

Finds the closest occurrence of the fence character to match the one at the current cursor position. Fence characters are parenthesis, brackets, braces, and angle brackets.

Extras Menu

These commands are MEmacs operational commands and macro commands. Specific numeric arguments may be required before selecting a command; an * indicate that an argument is required. Macro commands are executed by selecting the Execute-macro menu item.

Set-arg

Ctrl+U

Lets you specify a numeric argument for a command.

Set

Esc,S

Lets you set the following MEmacs parameters:

Screen
Places the MEmacs display in a Workbench window or back onto a custom screen.

Interlace
Turns the interlace mode on or off.

Mode
Results in a second prompt "Mode:"; you can enter Cmode (for editing C programs) or Wrap (to enable automatic word-wrap when the text reaches a set cursor position). Cmode provides automatic fence matching. Use +mode or -mode to add or subtract a mode.

Left
Determines the left margin. Prompts for a numerical argument if not provided with the entry.

Right
Determines the right margin. Prompts for a numerical argument if not provided with the entry.

Tab
Sets the increment for tab spacing. Prompts for a numerical argument if not provided with the entry.

Indent
Determines how far to indent each level of nesting (used in Cmode). Prompts for a numerical argument if not provided with the entry.

Case
Turns case-sensitive searches on of off; default is off.

Backup
Turns the MEmacs backup function on or off. Your options are: ON (renames the current file <filename>.bak and saves that bakkup file to the T: directory); SAFE (this option checks to see if a file already exists for the buffer - if so, it displays an error and does not overwrite the existing file, Ctrl+X clears the display); and OFF (this is the default option - MEmacs does not perform any backup).

Start-macro

Ctrl+X,(

Tells MEmacs to start recording any subsequent keystrokes. Used with the Stop-macro and Execute-macro commands.

Stop-macro

Ctrl+X,)

Tells MEmacs to stop recording keystrokes.

Execute-macro

Ctrl+X,E

Repeats keystrokes that were entered between Start-macro and Stop-macro.

Set-key

Ctrl+X, Ctrl+K

Allows you to redefine all of the function keys, the Shifted function keys, the Help key, or any key on the numeric keypad as keyboard macros. You cannot use the menu shortcut of Ctrl+@ to insert the Set-mark command into any keyboard macro definitions.

Reset-keys

Esc,K

Returns any keys defined by Set-keys to their original default state.

Execute-file

Esc,E

Allows you to execute a program file within MEmacs.

Execute-line

Ctrl+[, Ctrl+[

Sets MEmacs to command mode. At the prompt enter any menu command and its parameters. Alternate keyboard shortcut: Esc,Esc.

The following table contains the default values of the Set-key/function keys when used in macro commands.

Key

Assignment

Key Sequence

F1

Clone line

Ctrl+A,Ctrl+K,Ctrl+Y,Ctrl+M,Ctrl+Y

F2

Delete line

Ctrl+X,Ctrl+D

F3

Execute keyboard macro

Ctrl+X,E

F4

Next screen

Ctrl+V

F5

Previous screen

Esc,V

F6

Split window

Ctrl+X,2

F7

One window

Ctrl+X,1

F8

Scroll window up

Ctrl+Z

F9

Scroll window down

Esc,Z

F10

Save file and exit

Ctrl+X,Ctrl+F

Help

Insert line

Ctrl+J

Enter (keypad)

Insert line

Ctrl+J

Top Previous Next Chapter