4 Commits 24f892988a ... 43b07045a2

Autore SHA1 Messaggio Data
  NerdRat 43b07045a2 Fixed a repeated word. 2 anni fa
  NerdRat e756e5214b Added erasing text table to emacs cheatsheet and fixed an error. 2 anni fa
  NerdRat dd321c8626 Added more point movement commands and fixed some errors. 2 anni fa
  NerdRat 8683412a0e Added emacs prefix key table and fixed some errors. 2 anni fa
2 ha cambiato i file con 83 aggiunte e 6 eliminazioni
  1. 82 5
      emacs.md
  2. 1 1
      info.md

+ 82 - 5
emacs.md

@@ -87,21 +87,98 @@ If you see a space inside a chord like this `C-x f`, this means you press and re
 | `C-h h` | Display the HELLO file illustrating various scripts |
 
 
-## General key bindings
+## General Key Bindings
 
 | Key/Chord | Action |
 | --------- | ------ |
 | `C-x =` | Display a message in echo area, describing the character at point |
 | `C-g` | Signal a ‘quit’ condition. Quits from any operation you want to get out of and cancel it. |
+| `C-x C-c` | Kill emacs saving all currently opened files, this will kill the current connection terminating the emacs program |
+| `C-z` | If using a text terminal, this suspends Emacs, on GUI this iconifies or minimizes the selected frame |
 
 
-## Cursor movement key bindings
+## Prefix Keys
+
+A prefix key combines with the following input event to make a longer key sequence.  For example, ‘C-x’ is a prefix key, so typing ‘C-x’ alone does not invoke a command; instead, Emacs waits for further input (if you pause for longer than a second, it echoes the ‘C-x’ key to prompt for that input in the echo area.
+
+| Key/Chord | Context |
+| --------- | ------- |
+| `C-c` | Access to mode specific commands |
+| `C-h` | Access to help mode specific commands |
+| `C-x` | General emacs editing and usage commands |
+| `C-x <RET>` | Access to input method, coding system and language settings |
+| `C-x @` | Add the event or key modifier keys to a key sequence |
+| `C-x a` | Access to mode abreviations |
+| `C-x n` | Access to narrowing (hiding text) mode commands |
+| `C-x r` | Access to register commands. Registers are useful to temporarly save and retrieve content |
+| `C-x t` | Access to tab creation and manipulation commands |
+| `C-x v` | Access to version control commands |
+| `C-x 4` | Access to window creation and manipulation commands |
+| `C-x 5` | Access to frame creation and manipulation commands |
+| `C-x 6` | Access to "two-column" editing commands |
+| `M-g` | Access to goto jump and movement commands |
+
+
+## Basic Editing Commands
+
+These commands are the basics for entering text, make corrections and saving the work to files.
+
+
+### Inserting text
+
+To insert text in emacs you simply type the associated key with the ordinary "graphic character". This adds the charager to the currently selected buffer at the current point. The insertion moves the cursor one point foward, the point remains just after the inserted text.
+
+| Key/Chord | Action |
+| --------- | ------ |
+| `<RET>` | Ends a line by inserting `\n` and puts the cursor on a newly created line, indenting according with the current major mode |
+| `C-j` | Inserts a new line as `<RET>` but does not do auto-indentation |
+| `<insert>` | This is the insert key in your keyboard. Ths activates overwrite-mode that replaces the current characters at point as you type, eating the forward characters from the paragraph instead of pushing them to the right |
+| `C-q` | Insert a character not supported by the keyboard, this quotes the charater you insert after the prefix. You can use octal or decimal and hexadecimal sequences to insert character codes if `read-quoted-char-radix` is set |
+| `C-x 8 [shorthand]` | Insert unicode chars at point given the shorthands. See `C-x 8 C-h` for shorthands |
+| `C-x 8 <RET>` | Prompts the user to insert the unicode name or code point of a character using the minibuffer |
+
+
+### Changing the location of point
 
 | Key/Chord | Action |
 | --------- | ------ |
 | `C-f` | Moves foward one character in the buffer, does this by invoking '(forward-char &optional N)' command |
 | `C-b` | Moves backward one character in the buffer, does this by invoking '(backward-char &optional N)' command |
-| `C-a` | Moves to the beginning of the current line invoking '(move-beginning-of-line ARG)' lisp function |
-| `C-e` | Moves to the end of the current line invoking '(move-end-of-line ARG)' lisp function |
+| `C-a` | Moves to the beginning of the current line invoking '(move-beginning-of-line ARG)' elisp function |
+| `C-e` | Moves to the end of the current line invoking '(move-end-of-line ARG)' elisp function |
 | `C-n` | Moves vertically down one line or various if provided by invoking '(next-line &optional ARG TRY-VSCROLL)' function |
-| `C-p` | Moves vertically up one line or various if provided by invoking '(previous-line &optional ARG TRY-VSCROLL)' function |
+| `C-p` | Moves vertically up one line or various if provided by invoking '(previous-line &optional ARG TRY-VSCROLL)' function |
+| `M-f` | Move foward one word in the current buffer |
+| `M-b` | Move backwards one word in the current buffer |
+| `M-e` | Move fowards to next end of sentence in the current buffer |
+| `M-a` | Move backwards to the start of sentence in the current buffer |
+| `C-x [` | Move backwards to page boundary. This accepts a numeric argument to repeat |
+| `C-x ]` | Move forwards to page boundary. You can provide a numeric argument to repeat |
+| `C-M-f` | Move forward across one balanced expression. You can provide positive and negative arguments to repeat |
+| `C-M-b` | Move backward across one balanced expression (sexp). If positive numeric arg repeate many times, in reverse if negative argument |
+| `C-M-e` | Move forward to the next end of a defun |
+| `C-M-a` | Move backward to the beginning of a defun |
+| `C-x <` | Scroll the selected window display N columns to the left, default window with minus 2 |
+| `C-x >` | Scroll the selected window display N columns to the right |
+| `M-r` | Reposition point on the left margin of the center-most, bottom-most and top-most line of the window. This cicles on consecutive invocations |
+| `M-<` | Move to the top of the buffer |
+| `M->` | Move to the end of the buffer |
+| `C-v` | Scroll the display one screen foward and move point if necessary |
+| `M-v` | Scroll one screen backward and move point if necessary |
+| `M-g c` | Read a number N and move point to buffer position N. You can use `C-x =` to see the current point |
+| `M-g g` | Read a number N and move point to the beginning of line number N. Line 1 is the beginning of the buffer |
+| `M-g <TAB>` | Read a number N and move to coumn N in the current line. Column 0 is the leftmost column |
+| `C-x C-n` | Use the current column point as the semipermantent goal column for `C-n` and `C-p` in the current buffer |
+| `C-u C-x C-n` | Cancel the goal column, `C-n` and `C-p` preserve the horizontal position as usual |
+
+
+### Erasing text
+
+| Key/Chord | Action |
+| --------- | ------ |
+| `<BACKSPACE>` | Delete the character before point, or an active region |
+| `<Delete>` | Delete the character after the point, or an active region |
+| `C-d` | Delete the character after point |
+| `C-k` | Kill to the end of the line |
+| `M-d` | Kill forward to the end of the next word |
+| `M-<BACKSPACE>` | Kill back to the beginning of the previous word |

+ 1 - 1
info.md

@@ -44,7 +44,7 @@ When using info, certain keys and key combinations are commands. These are all t
 | `L` | Creates a virtual node that contains a list of all the nodes you visited, you can select a node from this menu to visit it |
 | `T` | Go to the table of contents of the current Info file |
 | `d` | Opens the directory node. This node is the first you see when you enter info |
-| `t` | Moves to the 'Top' node of the current manual manual, usually where the intro is |
+| `t` | Moves to the 'Top' node of the current manual, usually where the intro is |
 | `q` | This takes you out of info, no matter in which node you are |