]> git.donarmstrong.com Git - lib.git/commitdiff
use jumping stuff
authorDon Armstrong <don@donarmstrong.com>
Fri, 8 Dec 2017 00:45:34 +0000 (16:45 -0800)
committerDon Armstrong <don@donarmstrong.com>
Fri, 8 Dec 2017 00:45:34 +0000 (16:45 -0800)
emacs_el/configuration/don-configuration.org

index 6d96c8991af18dd8b9bc8fb9e603b42bbf9595fd..e622582d09c41bb8d9e8a58618b21bd6ea678352 100644 (file)
@@ -244,12 +244,35 @@ value, scrolling continues until there is no more output.
 ** Jumping
 *** Avy
 #+BEGIN_SRC emacs-lisp
-(use-package avy
-  :ensure t
-  :bind ("C-c C-SPC" . avy-goto-word-1)
-  :config (progn
-            (setq avy-background t)
-            (key-chord-define-global "jj"  #'avy-goto-word-1)))
+  (use-package avy
+    :ensure t
+    :bind (("C-c C-<SPC>" . avy-goto-word-or-subword-1)
+           ("C-c j j" . avy-goto-word-or-subword-1)
+           ("M-g g" . avy-goto-line))
+    :config (progn (setq avy-background t))
+    )
+#+END_SRC
+*** Ace-link (jumping to links)
+#+BEGIN_SRC emacs-lisp
+  (use-package ace-link
+    :ensure t
+    ; bind o in most modes
+    :config (ace-link-setup-default))
+#+END_SRC
+*** Jumping through edit points (goto-chg)
+#+BEGIN_SRC emacs-lisp
+  (use-package goto-chg
+    :ensure t
+    :bind (("C-c j ," . goto-last-change)
+           ("C-c j ." . goto-last-change-reverse))
+#+END_SRC
+*** Jumping to bookmarks (visible bookmarks, bm)
+#+BEGIN_SRC emacs-lisp
+  (use-package bm
+    :ensure t
+    :bind (("C-c j b ." . bm-next)
+           ("C-c j b ," . bm-previous)
+           ("C-c j b SPC" . bm-toggle)))
 #+END_SRC
 
 ** Snippets
@@ -1566,7 +1589,11 @@ From http://julien.danjou.info/projects/emacs-packages#rainbow-mode, this colori
           (add-to-list 'minor-mode-map-alist mykeys))))
   (ad-activate 'load)
 #+END_SRC
-
+** Goto line
+#+BEGIN_SRC emacs-lisp
+  (global-unset-key "\M-g")
+  (global-set-key (kbd "M-g l") 'goto-line)
+#+END_SRC
 * Misc (uncharacterized)
 #+BEGIN_SRC emacs-lisp
   (setq bibtex-user-optional-fields (quote (("annote" "Personal annotation (ignored)") ("abstract" "") ("pmid" "") ("doi" ""))))
@@ -1697,9 +1724,6 @@ From http://julien.danjou.info/projects/emacs-packages#rainbow-mode, this colori
 
   (setq mail-yank-prefix "> ")
 
-  (global-unset-key "\M-g")
-  (global-set-key "\M-g" 'goto-line)
-
   ;; self-insert-command hack.
   ;;   Without this, "if<SP>" expands to
   ;;   if ( -!-) {