]> code.delx.au - dotemacs/commitdiff
goto-chg - go to last edit
authorJames Bunton <jamesbunton@delx.net.au>
Sat, 15 Jul 2017 13:37:39 +0000 (23:37 +1000)
committerJames Bunton <jamesbunton@delx.net.au>
Sat, 15 Jul 2017 14:22:57 +0000 (00:22 +1000)
.gitmodules
README_KEYBINDINGS.md
lisp/my-keys.el
lisp/my-minor-modes.el
packages/goto-chg [new submodule]

index 620f578778dae18ca8a558188adec39209b47a3a..c4cc07bd7c14813585877ea88e4198cfb1720958 100644 (file)
 [submodule "highlight-symbol"]
        path = packages/highlight-symbol
        url = https://github.com/nschum/highlight-symbol.el.git
+[submodule "goto-chg"]
+       path = packages/goto-chg
+       url = https://github.com/emacsmirror/goto-chg.git
index 652105d10cb55c49629b233f7548bada36fa561e..64ed8fd6f9045251eca37428d595fbca1253b7c5 100644 (file)
@@ -142,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
@@ -150,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
index 2ff96692330d06da60135b815bf55714980b8320..14d9a76012d09d431523524678a83ef20fc87695 100644 (file)
@@ -52,6 +52,8 @@
 (global-set-key (kbd "C-=") 'er/expand-region)
 (global-set-key (kbd "C-c l") 'mc/edit-lines)
 (global-set-key (kbd "C-c m") 'mc/mark-more-like-this-extended)
+(global-set-key (kbd "C-.") 'goto-last-change)
+(global-set-key (kbd "C-,") 'goto-last-change-reverse)
 
 ;; Killing and deleting
 (global-set-key (kbd "M-y") 'counsel-yank-pop)
index ede7b3796b728f158a9b9f10652420a7502d93d8..013a54b5bd710030c2727025b8ab820dba7763d7 100644 (file)
@@ -36,6 +36,8 @@
         (define-key m (kbd "C-c RET") 'goto-address-at-point)
         m))
 
+(require 'goto-chg)
+
 (require 'highlight-symbol)
 (add-hook 'prog-mode-hook #'highlight-symbol-mode)
 (add-hook 'prog-mode-hook #'highlight-symbol-nav-mode)
diff --git a/packages/goto-chg b/packages/goto-chg
new file mode 160000 (submodule)
index 0000000..79fdd52
--- /dev/null
@@ -0,0 +1 @@
+Subproject commit 79fdd52dff5422d8191e34bf4c9cb86213d07211