In: computer, text-editor.
Also: VIM-cheatsheet.
Backlinks: VIM-cheatsheet.
Emacs
References
- https://gnu.org/software/emacs/refcards
- https://gnu.org/software/emacs/refcards/pdf/refcard.pdf
- https://gnu.org/software/emacs/refcards/pdf/survival.pdf
- https://linuxhint.com/emac\_cheatsheet
- https://emacsclub.github.io/html
- https://github.com/cheat/cheatsheets/blob/master/emacs
Dired
(launch) dired ;;
C-x d
(toggle) menu-bar-mode
To see all the other options in Diredquit-window ;;
q
Display last bufferkill-buffer ;;
C-x k
Actually kill the dired bufferdired-find-file ;;
Enter
Open the file/ directorydired-do-copy ;;
C
Copy filedired-do-rename ;;
R
Rename/ move filedired-do-delete ;;
D
Delete file/ directorydired-create-directory ;;
+
Create new directorydired-do-chown ;;
O
Change ownership of filedired-do-chgrp ;;
G
Change the group of filedired-do-chmod ;;
M
Change mode of filedired-do-compress ;;
Z
Compress/ decompress the file with gzip
Navigation
revert-buffer ;;
g
Refresh dir listingdired-up-directory ;;
^
Go to parent dirdired-next-dirline ;;
>
Move cursor to next subdirectorydired-prev-dirline ;;
<
Move cursor to previous subdirectory
Mark files
When there are marked files, dired command applies to the marked files.
When no files are marked, dired command applies to the file under cursor.
m (dired-mark)
Mark a fileu (dired-unmark)
Unmark file.* (dired-mark-extension)
Mark files with extensiont (dired-toggle-marks)
Marked files become unmarked and vice versaU (dired-unmark-all-marks)
Unmark all marked% m (dired-mark-files-regexp)
Mark by pattern (regex)
References for Dired
Org-Mode
- (toggle) menu-bar-mode
To see all the other options in Org menu
Motion
C-c C-n (org-next-visible-heading)
Next heading
C-c C-p (org-previous-visible-heading)
Previous heading
C-c C-f (org-forward-heading-same-level)
Next heading on same level
C-c C-b (org-backward-heading-same-level)
Previous heading on same level
Editing
M-RET
(org-meta-return)
Insert a new heading, item or rowC-RET
(org-insert-heading-respect-content)
Insert a new heading at the end of the current subtreeM-S-RET
(org-insert-todo-heading)
Insert new TODO entry with same level as current heading
M-LEFT
(org-do-promote)M-RIGHT
(org-do-demote)
Promote / demote current heading by one levelM-S-LEFT
(org-promote-subtree)M-S-RIGHT
(org-demote-subtree)
Promote / demote the current subtree by one levelM-UP
(org-move-subtree-up)
Move subtree up/ swap with previous subtree of same levelM-DOWN
(org-move-subtree-down)
Move subtree down/ swap with next subtree of same level
C-c ^
(org-sort)
Sort same-level entries
Priorities
C-c ,
(org-priority)
Set the priority of the current headlineS-UP
(org-priority-up)S-DOWN
(org-priority-down)
Increase/decrease the priority of the current headline
Define custom priorities for one Org file:
Plain lists
M-RET
(org-insert-heading)
Insert new item at current levelM-S-RET
(org-insert-todo-heading )
Insert a new item with a checkboxS-UP
(org-previous-item))S-DOWN
(org-next-item))
Jump to the previous/next item in the current list, if org-support-shift-select is offM-UP
M-DOWN
Move the item including subitems up/down / swap with previous/next item of same levelM-LEFT
M-RIGHT
Decrease/ increase the indentation of an item, leaving children aloneM-S-LEFT
M-S-RIGHT
Decrease/ increase the indentation of the item, including subitems
C-c ^
Sort the plain list
Checkboxes
C-c C-c
(org-toggle-checkbox)
Toggle checkbox status or—with prefix argument—checkbox presence at pointC-c C-x C-b
(org-toggle-checkbox)
Toggle checkbox status or—with prefix argument—checkbox presence at pointM-S-RET
(org-insert-todo-heading)
Insert a new item with a checkboxC-c C-x o
(org-toggle-ordered-property)
Toggle the ‘ORDERED’ property of the entry, to toggle if checkboxes must be checked off in sequenceC-c #
(org-update-statistics-cookies)
Update the statistics cookie in the current outline entry
Table editor
C-c |
(org-table-create-or-convert-from-region)
Convert the active region to tableC-c C-c
(org-table-align)
Re-align the table without moving pointTAB
(org-table-next-field)
Re-align the table, move to the next field. Creates a new row if necessary.S-TAB
(org-table-previous-field)
Re-align, move to previous fieldC-c SPC
(org-table-blank-field)
Blank the field at pointRET
(org-table-next-row)
Re-align the table and move down to next row. Creates a new row if necessary.M-a
(org-table-beginning-of-field)
Move to beginning of the current table field, or on to the previous fieldM-e
(org-table-end-of-field)
Move to end of the current table field, or on to the next field
Links
C-c C-l
(org-insert-link )
Insert a linkC-c C-l
(with point on existing link)
Edit the link and description parts of the linkC-c C-o
(org-open-at-point)
Open link at pointC-c C-x C-n
(org-next-link)C-c C-x C-p
(org-previous-link)
Move forward/backward to the next link in the buffer
Internal links
[[#my-custom-id]]
- a link to CUSTOM_ID=my-custom-id
[[*Some section]]
- a link to Headline name
If matching doesn't work, org tries <<My target>>
or #+NAME: My Target
.
You must make sure that custom IDs, dedicated targets, and names are unique throughout the document.
Define abbreviations for an Org file:
TODOs
C-c C-t
(org-todo)
Rotate the TODO state of the current itemS-RIGHT
S-LEFT
Select the following/ preceding TODO state, similar to cyclingC-c / t
(org-show-todo-tree)
View TODO items in a sparse treeS-M-RET
(org-insert-todo-heading)
Insert a new TODO entry below the current
Special todo states for an Org file:
Tags
C-c C-q
(org-set-tags-command)
Enter new tags for the current headlineC-c C-c
(org-set-tags-command)
When point is in a headline, this does the same as C-c C-q
C-c / m
or C-c \
(org-match-sparse-tree)
Create a sparse tree with all headlines matching a tags search
Properties
C-u M-x
(org-insert-drawer)
Insert a property drawer into the current entryC-c C-x p
(org-set-property)
Set a property. This prompts for a property name and a value.C-c C-c s
(org-set-property)
Set a property in the current entryC-c C-c d
(org-delete-property)
Remove a property from the current entryC-c C-c D
(org-delete-property-globally)
Globally remove a property, from all entries in the current fileS-RIGHT
(org-property-next-allowed-values)S-LEFT
(org-property-previous-allowed-value)
Switch property at point to the next/previous allowed value
C-c / p
Create a sparse tree based on the value of a property
Timestamps
C-c .
(org-time-stamp)
Insert a timestampm or modify current timestampC-c !
(org-time-stamp-inactive)
Like C-c ., but insert an inactive timestampC-c C-c
Normalize timestamp, insert or fix day name if missing or wrongS-LEFT
(org-timestamp-down-day)S-RIGHT
(org-timestamp-up-day)
Change date at point by one dayS-UP
(org-timestamp-up)S-DOWN
(org-timestamp-down)
On the beginning or enclosing bracket of a timestamp, change its type, within a timestamp, change the item under point
Refile and Copy
C-c C-w
(org-refile)
Refile the entry or region at point; possible locations for refiling the entry and select one with completion.C-c M-w
(org-refile-copy)
Copying works like refiling, except that the original note is not deleted.
References for Org
- http://ergoemacs.org/emacs/emacs_org_markup.html
- https://caiorss.github.io/Emacs-Elisp-Programming/Org-Mode.html
- https://devhints.io/org-mode
- https://elbauldelprogramador.com/en/org-mode-quick-cheatsheet
- https://emacsclub.github.io/html/org_tutorial.html
- https://gist.github.com/drj42/1755992
- https://gnu.org/software/emacs/manual/html_node/org
- https://orgmode.org/manual/index.html
- https://orgmode.org/orgguide.pdf
- https://orgmode.org/worg/orgcard.html
- https://orgmode.org/worg/org-glossary.html
- https://wikipedia.org/wiki/Org-mode
Magit
References for Magit
- https://magit.vc/manual/magit/Manipulating.html (commit, reset, branch, stash)
- https://magit.vc/manual/magit/Transferring.html (fetch, pull, push)
- https://github.com/magit/magit