Cheatography
https://cheatography.com
A few useful Emacs commands for my customized Emacs configuration.
This is a draft cheat sheet. It is a work in progress and is not finished yet.
Handling Files
|
Open file [without IDO] |
|
Save file |
|
Save file as... |
|
Save all buffers |
|
Rename file |
|
Delete file |
|
Edit as root |
|
Encoding for next command |
|
Encoding for saving file |
TRAMP
/[user@]host:path |
Remote access via SSH |
/sudo::/path |
Open as root |
General editing
|
Yank (paste) |
|
Cycle in kill ring |
|
Browse kill ring |
|
Set mark [and deactivate it] |
|
Jump to mark |
Dired (open with C-x d)
C/R/D |
Copy/rename/delete |
!/& |
Shell command/asynchronous |
Z |
Compress/uncompress |
M/G/O |
Change mode/group/owner |
A/Q |
Search/replace |
m/u/U |
Mark/unmark/unmark all |
+ |
New directory |
g |
Refresh |
|
|
Frames
|
Close current frame |
|
Close all except current frame |
|
Split frame {horizontally/vertically} |
|
Switch to next frame |
|
Resize frame |
|
Scroll all frames simultaneously |
Screens
|
Create new screen |
|
Kill current screen |
|
Go to screen number 1 ... 10 |
|
List active screens |
|
Escreen menu |
Desktops
|
Load session |
|
Save current session |
|
Save current session & clear |
|
Change session (save & load) |
|
Show current session name |
Google
|
Google search |
|
Google search on cursor |
|
Google C++ reference |
|
Google maps search |
|
Google translate at point |
|
Google translate |
Org-mode: General
|
Fold/unfold [all] |
|
Move/change indentation level |
|
... for entire subtree |
|
Quickly capture a note |
|
... save the note |
|
... abort |
Org-mode: Lists
|
Un-ordered list |
|
Ordered list |
|
Definition list |
|
Checkbox |
|
Toggle checkbox |
Lists are recognized as sub-tasks for to-dos.
Org-mode: To-dos
|
Deadline for to-do item |
|
Schedule to-do item |
|
Rotate to-do state |
|
Set to-do priority |
|
Calendar-like agenda |
|
Global to-do overview |
[/]
or [%]
in a to-do heading show subtask completion.
Org-mode: Misc.
[[link][text]] |
Define a link |
|
Save current buffer as link |
|
Insert link |
|
Open link |
|
Kill table column/row |
|
Insert table column/row |
|
Export... |
|
Insert options template |
|
|
Programming
|
Comment in/out a line or region |
|
Next occurence of symbol |
|
Previous occurence of symbol |
|
Replace symbol |
|
Jump to definition... |
|
[Python] Execute buffer |
|
[Python] Switch to interpreter |
|
[Python] Help on symbol |
|
[sh] Execute script |
|
[HTML] Fold/unfold block |
|
[JS] Fold/unfold all functions |
|
[JS] Fold/unfold block comments |
|
[JS] Fold/unfold at point |
Flycheck
|
Jump to previous error |
|
Jump to next error |
|
List all errors |
|
Toggle Flycheck mode |
Magit (Open with F4)
|
Show/hide all diffs |
|
Stage / Stage all |
|
Unstage / Unstage all |
|
Ignore untracked file |
|
Delete file permanently |
|
Open commit buffer |
|
Perform commit |
|
List of revisions / Verbose list |
|
Apply commit ("cherry-pick") |
|
Revert commit |
|
Revert all uncommitted changes |
|
Push current branch |
|
Pull current branch |
|
Manipulate branches |
|
Quit current Magit buffer |
Many commands can be used on parts of a diff, e.g. to stage or revert partial changes.
|