Emacs
| Shortcut | Comando (M-x) | Descrizione |
|---|
| C-u M-s d | (consult-find) | cerca ricorsivamente un file all’interno delle directory |
| C-u M-s g | (consult-grep) | cerca ricorsivamente una stringa all’interno dei file |
Basic cursor control
| Shortcut | Description |
|---|
| C-f | Move forware a charachter |
| C-b | Move backward a charachter |
| M-f | Move forward a word |
| M-b | Move backward a word |
| C-n | Move to next line |
| C-p | Move to previous line |
| C-a | Move to beginning of line |
| C-e | Move to end of line |
| M-a | Move back to beginning of sentence |
| M-e | Move forward to end of sentence |
| M-< | Move to beginning of buffer |
| M-> | Move to end of buffer |
| C-l | Scroll current line centered |
| C-l | Scroll current line top |
| C-l | Scroll current line bottom |
Moving inside buffers
| Shortcut | Description |
|---|
| C-f | Move forware a charachter. |
| C-b | Move backward a charachter. |
| M-f | Move forward a word. |
| M-b | Move backward a word. |
| C-n | Move to next line. |
| C-p | Move to previous line. |
| C-a | Move to beginning of line. |
| C-e | Move to end of line. |
| M-a | Move back to beginning of sentence. |
| M-e | Move forward to end of sentence. |
| M-< | Move to beginning of buffer. |
| M-> | Move to end of buffer. |
| C-l | Scroll current line centered. |
| C-l | Scroll current line top. |
| C-l | Scroll current line bottom. |
| C-M-f | Forward through keywords. |
| C-M-b | Backward through keywords. |
| C-M-p | Flow prior brackets. |
| C-M-n | Flow next brackets. |
| C-M-k | Kill until end of next expression. |
| C-M-SPC | Mark until end of next expression. |
Adding numeric argument example
| Shortcut | Description |
|---|
| C-u 8 C-f | Move forward 8 charachters |
Inserting, deleting and killing text
stands for .
| Shortcut | Description |
|---|
| C-u 10 x | Insert 10 times charachter ‘x’ |
| Delete charachter before cursor |
| C-d | Delete next charachter after cursor |
M- | Kill the word before cursor |
| M-d | Kill next word after cursor |
| C-k | Kill from the cursor to end of line |
| M-k | Kill to the end of current sentence |
| C- | then move cursor to the end of selection and C-w for kill or M-w for copy. |
| C-y | Reinserts last killed text |
| M-y (after C-y) | recursively past previous killed text |
| M-y (alone) | Allow choose text from previous killings |
The difference between killing and deleting is that killed text can be reinserted.
Undo (for changing text actions)
The following shortcuts are available:
Files and buffers
| Shortcut | Description |
|---|
| C-x C-f | Find or create a file |
| C-x C-s | Save the file |
| C-x C-b | List buffers |
| C-x b | Change buffer |
Incremental searching
| Shortcut | Description |
|---|
| C-s | then type C-s for next occurance and for previous occurance |
Multiple windows
| Shortcut | Description |
|---|
| C-x 2 | Split screen |
| C-M-v | Scroll bottom window |
| C-x o | Move to other window |
| C-x 4 | Open file in new window |
Getting help
| shortcut | description |
|---|
| C-h k | Describe shortcut |
| C-h c | Describe shortcut breafly |
| C-h a | Describe a command |
| C-h a | Search command by keyword |
| C-h i | Read included manuals |
| C-h r | Emacs Manual |
M-x list-packages
| Shorcut/Command | Description |
|---|
| h | Short help |
| r | Refresh package list |
| i | Mark package for installation |
| d | Mark package for deletion |
| x | Install or delete package under point and install/delete marked packages |
| Show help for package at point |
| w | Open package website in browser |
| U | Mark all packages with newer version for upgrading |
| / | Filter packages for various criteria |
| / / | Clear filter |
Agenda view
| Shortcut | Description |
|---|
| q | Close window |
| x | Exit agenda and remove related buffers opened |
| o | Close other windows |
| p / n | Previous/next line |
| Display item in other window (C-x 1 to close) |
| Go to item in other window (C-x 0 to close) |
| Go to item and delete other windows |
| F | Toggle follow-mode by opening original file |
| A | Select an agenda view and append in current view |
| v | Choose day/week/month/year view (<SPC> to reset |
| v a | Toggle ARCHIVE items visibility |
| f | Go forward day/week/month/year |
| b | Go backward day/week/month/year |
| . | Go today |
| j | Jump tu date |
| r / g | Refresh agenda view display |
| s | Save all org buffer |
| C-k | Delete item at point |
| t | Change TODO state |
| C-c C-x a | Tag item as ARCHIVE |
| C-c C-x A | Move item to ‘Archive’ headline and tag ARCHIVE |
| $ | Move item to the configured archive location |
Urxvt
| Shortcut | Descrizione |
|---|
| Ctrl+Alt+c | copia |
| Ctrl+Alt+v | incolla |
Neovim
| Shortcut/Comando | Descrizione |
|---|
| Ctrl+Alt+v | incolla (solo INSERT MODE) |
| *** | trova la prossima corrispondenza |
| % | avanti/indietro da parentesi corrispondenti (),[],{}, oppure all’interno di funzioni (es. if-endif) |
| :te / :terminal | avvia terminale (i insert mode, exit per uscire) |
Tmux
| Shortcut | Descrizione |
|---|
| PREFIX / | inizia ricerca con copycat, poi… |
| q | … esce da ‘copycat’ |
| C-u | … scorre in alto |
| C-d | … scorre in basso |
| n | … prossima occorrenza (verso l’alto) |
| N | … prossima occorrenza (verso il basso) |
| v | … inizia selezione caratteri |
| V | … inizia selezione righe |
| y | … copia |
Emacs Info
Info manuals che be surfed with info command or inside emacs itself.
| Shortcut | Description |
|---|
| C-h i | Enter info manuals or back to buffer |
| h | How to use info |
| ? | Show shortcuts |
| q | Quit info manuals leaving buffer open |
| M-x visible-mode | Show/hide invisible text |
| n | Next node same level |
| ] | Next node following structure |
| Move forward |
| p | Previous node same level |
| [ | Previous node following structure |
| Move backward |
| b | To beginning of node |
| C-l | Center text vertically |
| ^ | Move up the node following structure |
| m | Menu items in node (autocompletion or ?) |
| f | Cross references in node (autocompletion or ?) |
| i | Show index menu items of file (autocompletion or ?) |
| l | Backward in history list of visited nodes |
| r | Forward again in history list of visited nodes |
| d | Move to first node visited (directory node) |
| L | Create a virtual node with history list of visited nodes |
| Move to next menu item / cross reference |
| S- or M- | Move to previous menu item / cross reference |
Linux
| Shortcut/Command | Description |
|---|
| pacman -Q | All packages installed. |
| pacman -Qm | Only AUR packages. |
| pacman -Rn | Remove config also config files |
| pacman -Rns | Remove also dependences |
| pacman -Qdt | Packages not needed as dependences |