Version 1.0 Revision 1
A guide to keyboard commands available in the FreeLisp editor and listener.
The Control, Escape and Shift keys are referred to throughout as C, Esc and S respectively.
The string C-k should be read "Press Control, and, without releasing it, press k". Esc k should be read "Press Escape, release it, and press k"
Description | Key |
---|---|
Repeat command n times. | C-u n command |
Undo the last command | C-_ |
Abort command | C-g |
For instance, to move forward 10 characters, do C-u 10 C-f.
Description | Key |
---|---|
Move forward one character | C-f or --> |
Move backward one character | C-b or ¬ |
Move forward one word | Esc f or C---> |
Move backward one word | Esc b or C-¬ |
Move to the beginning of the line | C-a Home |
Move to the end of the line | C-e End |
Move down one line | C-n |
Move up one line | C-p |
Move cursor up one screen | Esc v PageUp |
Move cursor down one screen | C-v PageDown |
Moves cursor to beginning of buffer | Esc < |
Moves cursor to end of buffer | Esc > |
Move to the beginning of the current sentence | Esc a |
Move to the end of the current sentence | Esc e |
Move to the beginning of the current paragraph | Esc [ |
Move to the end of the current paragraph | Esc ] |
Move cursor to top of window | C-PageUp |
Action | Mouse Click |
---|---|
Move cursor to position clicked on | Left Button |
Set mark to position clicked on | Right Button |
Mark word clicked on | S Left Button |
Paste word to the right of the cursor | S Right Button |
Copy region to kill ring | C-S Left Button |
Description | Key |
---|---|
Set mark | C-space |
Pop mark (i.e. delete the mark) | Esc C-space |
Commands described below as "deleting" text delete the text permanently (you can only recover it by using C-_).
Commands described as "cutting" text will remove the text and place it in the kill ring. You can then use the text again by pasting it in. See the next section.
Esc w
copies the region into the kill ring without deleting the original. The text can then be pasted. (See below.)
.
Description | Key |
---|---|
Delete the next character | C-d Delete |
Delete the previous character | Backspace |
Cut the next word | Esc d Esc Delete |
Cut the previous word | Esc Backspace |
Cut the rest of the line after the cursor (kill) | C-k |
Cut the marked region (wipe) | C-w |
Copy the marked region | Esc w |
Description | Key |
---|---|
Paste the top item from kill ring at current cursor position (yank) | C-y |
Paste the previous item in the kill ring at the current cursor position Use this after a paste if the text you want is not at the top of the kill ring. | Esc y |
Insert new line into buffer | C-o |
Indent current line. In Lisp mode, indents according to previous line of definition. | Tab |
To overwrite text in the buffer (rather than move characters to the right) as you type in new text, press the Insert key. Press Insert again to return to the default behavior.
Description | Key |
---|---|
Search forward in the buffer for specified string | C-s |
Search backward in the buffer for specified string (reverse search) | C-r |
Replace string with newstring, prompting you whenever string is found | Esc % |
End search/replace (stops at current position) | Esc |
Abort search/replace (returns to original position) | C-g |
Help for replace | ? |
When using the last option listed above, you are prompted for both string and newstring.
The searches listed above look forward (or backward) in the current buffer, beginning the search as soon as you enter the first character. While in a search, C-w pulls the word at the cursor into the search. To repeat the search in either direction, type C-s or C-r again, as appropriate.
Description | Key |
---|---|
Switch to another buffer | C-x b |
Kill a buffer | C-x k |
Open another Editor window | C-x 2 |
When switching buffers, you are prompted for a buffer name.
Description | Key |
---|---|
For more info on the command you just issued, such as possible completions | ? |
Attempts to complete the filename from what has been typed so far | TAB |
Show the previous command in the Echo Area history list | Esc p |
Show the next command in the Echo Area history list | Esc n |
Go to the beginning of the line in the Echo Area | C-a |
Put the suggested default in the command entry area so that you can edit it before use | C-p |
Description | Key |
---|---|
Find arguments of symbol before the cursor | Esc = |
Find arguments of symbol at head of current form | C-A |
Find source code definition of symbol before the cursor | Esc . |
Find next definition of symbol | Esc , |
Complete symbol name as far possible | Esc C-i |
Move to start of current definition | Esc C-a |
Move to end of current definition | Esc C-e |
For Esc . and Esc , you can also specify a symbol or part of a symbol.
Description | Key |
---|---|
Move cursor forward to the next form | Esc C-f |
Move cursor to the previous form | Esc C-b |
Move cursor back one ( | Esc C-u |
Move cursor forward one ( | Esc C-d |
Kills form after cursor | Esc C-k |
Single macroexpansion of form after cursor | C-M |
Indents code in next form | Esc C-q |
Description | Key |
---|---|
Move to previous command in Listener | C-c C-p |
Move to next command in Listener | C-c C-n |
Bring command to end of Listener | C-j |
in-package
command at the top of a file when it is first read in, this is taken to specify the package; otherwise a default package is used. The package is shown in the message line at the bottom of the editor window.
Description | Key |
---|---|
Evaluate current or next definition | Esc C-x |
Evaluate expression in Echo Area (type definition to be evaluated) | Esc Esc |
Use the Tab character for indentation of Lisp forms. In Lisp mode, this follows Lisp structure, and indents your code to the appropriate point, according to the level of nesting of brackets.