]> code.delx.au - dotemacs/blobdiff - README_KEYBINDINGS.md
goto-chg - go to last edit
[dotemacs] / README_KEYBINDINGS.md
index 2bf709d0a5214463d9daa2295e7ced7928d72e14..64ed8fd6f9045251eca37428d595fbca1253b7c5 100644 (file)
@@ -53,6 +53,7 @@ C-x C-f                                         Find file
 C-x C-v                                         Find file and kill current buffer
 C-x f                                           Find files in git repository
 C-x g                                           Grep in git repository
+M-q                                             Replace in git repository (while in git grep)
 M-x find-file-at-point                          Find (open) filename at point
 M-x browse-url-at-point                         Browse URL at point
 C-x k                                           Kill buffer
@@ -61,6 +62,7 @@ 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
+//,~                                            Go to {root,home} directory in find-file
 ```
 
 # Windows/frames
@@ -83,7 +85,7 @@ C-x 5 2                                         New frame (X11 window)
 M-m                                             Jump back to start of indentation
 M-r                                             Jump to window top/bottom/middle
 M-g Tab                                         Jump to column
-M-g f                                           Jump to charactor on current line
+M-g f                                           Jump to charactor, ;/, to go forward/back
 M-g g                                           Jump to visible line or any line
 M-g j                                           Jump to word by first character
 M-g M-g                                         Jump to visible line or any line
@@ -114,7 +116,8 @@ C-M-u                                           Move up one level of parentheses
 ```
 Tab                                             Indent current line correctly
 C-x Tab                                         Indent region with left/right
-M-/                                             Auto-complete
+M-/                                             Expand at point
+M-Tab                                           Auto-complete at point
 M-;                                             Comment line or region
 M-i                                             Change inner region
 M-q                                             Reformat paragraph
@@ -139,7 +142,8 @@ M-x comment-box                                 Wrap region in comment box
 ```
 C-Space                                         Set mark (start selection)
 C-Space C-Space                                 Set mark to point
-C-u C-space                                     Return to mark
+C-u C-space                                     Pop mark
+C-x C-space                                     Pop global mark
 C-x C-x                                         Exchange point and mark
 C-M-h                                           Highlight expression
 M-@                                             Set mark at end of next word
@@ -147,6 +151,8 @@ 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
+C-.                                             Go to last edit
+C-,                                             Go to last edit reverse
 ```
 
 # Highlighting
@@ -221,7 +227,6 @@ Meta-Right-Click                                Yank secondary
 # Mode switching
 ```
 C-x C-j                                         Open direx at current file
-C-c g s                                         Magit status
 F8                                              Toggle flyspell-mode
 F9                                              Toggle whitespace mode
 F10                                             Toggle word wrap
@@ -230,7 +235,7 @@ M-x multi-occur                                 Search in buffers and display re
 M-x eshell                                      Run eshell
 M-x ielm                                        Run Emacs Lisp REPL
 M-x linum-mode                                  Display line numbers
-M-x restclient                                  Open HTTP client
+M-x overwrite-mode                              Switch to overwrite mode
 M-x shell                                       Run bash shell
 M-x slime                                       Run Common Lisp REPL
 M-x smerge-ediff                                Resolve merge conflicts in multi-window mode
@@ -277,6 +282,15 @@ C-c C-c                                         Compile and load the top-level f
 C-c M-k                                         Compile (but not load) the current buffer's file
 ```
 
+
+# Javascript
+```
+C-c C-r                                         Rename variable
+C-c C-c                                         Find type
+C-c C-d                                         Find docs
+```
+
+
 # Shell
 ```
 M-!                                             Execute command