]> code.delx.au - dotemacs/blobdiff - README.md
markdown_py
[dotemacs] / README.md
index 699cb2b6ecf09694092b6b0b7027a16e4bb7e4ea..bac8463b659efe9b7b22a696d11654695099edfd 100644 (file)
--- a/README.md
+++ b/README.md
@@ -1,8 +1,9 @@
 # References
-https://www.gnu.org/software/emacs/refcards/pdf/refcard.pdf
-https://www.gnu.org/software/emacs/manual/html_node/elisp/Key-Binding-Conventions.html
+* [Reference Card](https://www.gnu.org/software/emacs/refcards/pdf/refcard.pdf)
+* [Key Binding Conventions](https://www.gnu.org/software/emacs/manual/html_node/elisp/Key-Binding-Conventions.html)
 
 # General commands
+```
 C-x C-c                                         Quit Emacs
 C-u C-x C-c                                     Save and quit
 C-g                                             Cancel command
@@ -15,15 +16,19 @@ M-x eval-buffer                                 Load current buffer as elisp
 C-x C-0                                         Reset font to standard
 C-x C-+/=                                       Increase font size
 C-x C--                                         Decrease font size
+```
 
 # Help
+```
 C-h C-h                                         Help
 C-h k                                           Help about key binding
 C-h v                                           Describe variable
 C-h f                                           Describe function
 C-h m                                           Documentation on active modes
+```
 
 # Search
+```
 C-s                                             Search forward (ivy/swiper mode)
 C-r                                             Resume ivy search
 M-s .                                           Search for symbol around point
@@ -31,8 +36,10 @@ C-s                                             Find next item (while searching)
 Backspace                                       Previous search (while searching)
 M-%                                             Search and replace
 M-x linum-mode                                  Display line numbers
+```
 
 # Files/buffers
+```
 C-x C-s                                         Save current buffer
 C-x s                                           Save some buffers
 C-x C-w                                         Write buffer to file
@@ -47,8 +54,10 @@ C-x b                                           Select named buffer
 C-x C-b                                         Show all buffers
 C-x C-r                                         Show recent files
 M-x scratch-buffer                              Create new scratch buffer
+```
 
 # Windows/frames
+```
 C-x o                                           Switch to other window
 C-x 0                                           Delete window
 C-x 1                                           Switch to single window
@@ -59,8 +68,10 @@ C-x +                                           Make windows the same height
 C-x ^                                           Make window taller
 C-Up / C-Down / C-Left / C-Right                Switch windows
 M-x make-frame                                  New frame (X11 window)
+```
 
 # Movement
+```
 M-m                                             Jump back to start of indentation
 M-r                                             Jump to window top/bottom/middle
 M-g M-g                                         Jump to line
@@ -87,8 +98,10 @@ C-M-n                                           Forward to end of balanced expre
 C-M-b                                           Back one s-expression / symbol
 C-M-f                                           Forward one s-expression / symbol
 C-M-u                                           Move up one level of parentheses
+```
 
 # Text formatting
+```
 M-/                                             Auto-complete
 M-;                                             Comment line or region
 M-i                                             Change inner region
@@ -104,8 +117,10 @@ C-j                                             Newline and maybe indent
 M-^                                             Join to previous line
 M-j                                            New line with comment
 C-q                                            Quoted insert
+```
 
 # Marking
+```
 C-Space                                         Set mark (start selection)
 C-Space C-Space                                 Set mark to point
 C-u C-space                                     Return to mark
@@ -116,8 +131,10 @@ C-=                                             Expand region
 C-c l                                           Insert extra cursor on all lines in region
 C-c m                                           Ask to insert extra cursor at locations matching selected region
 M-=                                             Display info about region
+```
 
 # Killing and deleting
+```
 C-M-k                                           Kill s-expression / symbol
 C-w                                             Kill from mark to point
 C-y                                             Yank text (paste)
@@ -135,23 +152,31 @@ M-Space                                         Collpase to one space around poi
 M-\                                             Delete spaces around point
 C-x C-o                                         Collapse blank lines
 M-x delete-trailing-whitespace                  Delete trailing whitespace
+```
 
 # Transposing
+```
 C-t                                             Transpose chars
 M-t                                             Transpose words
 C-x C-t                                         Transpose lines
 C-M-t                                           Transpose s-expressions
+```
 
 # Rectangle
+```
 C-x Space                                       Toggle mark rectangle mode
 C-x r t                                         Replace rectangle with string
+```
 
 # Macros
+```
 F3 , F4                                         Start recording macro, finish recording macro
 C-u F3                                          Play last macro then append keys
 F4                                              Play back macro
+```
 
 # Mode switching
+```
 C-x C-j                                         Open direx at current file
 F8                                              Toggle flyspell-mode
 F9                                              Toggle whitespace mode
@@ -164,36 +189,47 @@ M-x smerge-ediff                                Resolve merge conflicts in multi
 M-x smerge-mode                                 Resolve merge conflicts by hunks
 M-x restclient                                  Open HTTP client
 M-x yas-reload-all                              Reload all snippets
+```
 
 # Lisp
+```
 C-M-x                                           Eval top-level form
 C-c C-z                                         Switch to REPL
 C-c C-c                                         Compile and load the top-level form at point
 C-c M-k                                         Compile (but not load) the current buffer's file
+```
 
 # Shell
+```
 M-!                                             Execute command
 M-&                                             Execute command asynchronously
 M-|                                             Execute with region
 C-u M-|                                         Filter with region
+```
 
 # Smerge mode
+```
 C-c ^ p                                         Go to previous hunk
 C-c ^ n                                         Go to next hunk
 C-c ^ Return                                    Keep current
 C-c ^ a                                         Keep all
 C-c ^ m                                         Keep mine
 C-c ^ o                                         Keep other
+```
 
 # Flyspell
+```
 M-$                                             Correct word
 C-M-i                                           Automatically correct word
 C-;                                             Automatically correct last word
 <mouse-2>                                       Popup word correction
+```
 
 # Flycheck
+```
 C-c ! v                                         Verify setup
 C-c ! n                                         Next error
 C-c ! p                                         Previous error
 C-c ! l                                         List errors
 C-c ! x                                         Disable checker
+```