]> code.delx.au - dotemacs/commitdiff
use avy instead of ace-jump
authorJames Bunton <jamesbunton@delx.net.au>
Sun, 24 Jul 2016 10:59:36 +0000 (20:59 +1000)
committerJames Bunton <jamesbunton@delx.net.au>
Sun, 24 Jul 2016 23:25:16 +0000 (09:25 +1000)
.gitmodules
README.md
lisp/my-keys.el
lisp/my-minor-modes.el
packages/ace-jump-mode [deleted submodule]
packages/avy [new submodule]

index c71de2bfb11ad9b7dc9232be34d948e9a42b9c37..7602c46f52db8b16e611b479922aae9aaa07a28f 100644 (file)
@@ -34,9 +34,6 @@
 [submodule "indent-guide"]
        path = packages/indent-guide
        url = https://github.com/zk-phi/indent-guide.git
-[submodule "ace-jump-mode"]
-       path = packages/ace-jump-mode
-       url = https://github.com/winterTTr/ace-jump-mode.git
 [submodule "expand-region"]
        path = packages/expand-region
        url = https://github.com/magnars/expand-region.el.git
@@ -97,3 +94,6 @@
 [submodule "popwin"]
        path = packages/popwin
        url = https://github.com/m2ym/popwin-el.git
+[submodule "avy"]
+       path = packages/avy
+       url = https://github.com/abo-abo/avy.git
index bac8463b659efe9b7b22a696d11654695099edfd..a44cf99e0b1dcf1dbb556fec2820b8ea8d9b6567 100644 (file)
--- a/README.md
+++ b/README.md
@@ -31,11 +31,11 @@ C-h m                                           Documentation on active modes
 ```
 C-s                                             Search forward (ivy/swiper mode)
 C-r                                             Resume ivy search
-M-s .                                           Search for symbol around point
-C-s                                             Find next item (while searching)
-Backspace                                       Previous search (while searching)
+C-7                                             Start a cursor for each result (while searching)
+M-q                                             Replace searched item (while searching)
+M-p                                             Search for previous item (while searching)
+M-n                                             Search for symbol at point (while searching)
 M-%                                             Search and replace
-M-x linum-mode                                  Display line numbers
 ```
 
 # Files/buffers
@@ -74,9 +74,10 @@ M-x make-frame                                  New frame (X11 window)
 ```
 M-m                                             Jump back to start of indentation
 M-r                                             Jump to window top/bottom/middle
-M-g M-g                                         Jump to line
 M-g Tab                                         Jump to column
-M-g j                                           Jump to character
+M-g M-j                                         Jump to charactor
+M-g M-w                                         Jump to word by first character
+M-g M-g                                         Jump to visible line or any line
 C-a                                             Beginning of line
 C-e                                             End of line
 C-p                                             Back one line
@@ -112,11 +113,12 @@ M-c                                             Capitalise word
 C-x C-l                                         Lower case region
 C-x C-u                                         Upper case region
 C-o                                             Insert a new line above point
-M-o                                            Insert a new line below point
+M-o                                             Insert a new line below point
 C-j                                             Newline and maybe indent
 M-^                                             Join to previous line
-M-j                                            New line with comment
-C-q                                            Quoted insert
+M-j                                             New line with comment
+C-q                                             Quoted insert
+M-x comment-box                                 Wrap region in comment box
 ```
 
 # Marking
@@ -183,6 +185,7 @@ F9                                              Toggle whitespace mode
 F10                                             Toggle word wrap
 M-x eshell                                      Run eshell
 M-x ielm                                        Run Emacs Lisp REPL
+M-x linum-mode                                  Display line numbers
 M-x shell                                       Run bash shell
 M-x slime                                       Run Common Lisp REPL
 M-x smerge-ediff                                Resolve merge conflicts in multi-window mode
index 0c65c9a410a6fc1172b6229285204d139014b5b3..601a7d8aff9a051b05b52612db3d3d272fbc5e7b 100644 (file)
@@ -23,7 +23,9 @@
 (global-set-key (kbd "<C-right>") 'windmove-right)
 
 ;; Movement
-(global-set-key (kbd "M-g j") 'ace-jump-mode)
+(global-set-key (kbd "M-g M-j") 'avy-goto-char-timer)
+(global-set-key (kbd "M-g M-w") 'avy-goto-word-1)
+(global-set-key (kbd "M-g M-g") 'avy-goto-line)
 
 ;; Text formatting
 (global-set-key (kbd "M-/") 'hippie-expand)
index 41491df785ca1201a3ff4c65cc86a70af95bf0c3..a38657f4e5bfbebb7d2deefc0ae52bc6afc7db7b 100644 (file)
@@ -1,4 +1,7 @@
-(require 'ace-jump-mode)
+(require 'avy)
+(setq avy-background t)
+(setq avy-all-windows nil)
+(setq avy-timeout-seconds 1)
 
 (require 'change-inner)
 
diff --git a/packages/ace-jump-mode b/packages/ace-jump-mode
deleted file mode 160000 (submodule)
index 8351e2d..0000000
+++ /dev/null
@@ -1 +0,0 @@
-Subproject commit 8351e2df4fbbeb2a4003f2fb39f46d33803f3dac
diff --git a/packages/avy b/packages/avy
new file mode 160000 (submodule)
index 0000000..a5fb936
--- /dev/null
@@ -0,0 +1 @@
+Subproject commit a5fb9369e7b68c9786f2d620f064b4b93f2ae902