From eaad92f997d5e6b7701ba7b730cd290eda83fb8c Mon Sep 17 00:00:00 2001 From: Don Armstrong Date: Thu, 7 Dec 2017 16:45:34 -0800 Subject: [PATCH] use jumping stuff --- emacs_el/configuration/don-configuration.org | 44 +++++++++++++++----- 1 file changed, 34 insertions(+), 10 deletions(-) diff --git a/emacs_el/configuration/don-configuration.org b/emacs_el/configuration/don-configuration.org index 6d96c89..e622582 100644 --- a/emacs_el/configuration/don-configuration.org +++ b/emacs_el/configuration/don-configuration.org @@ -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-" . 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" expands to ;; if ( -!-) { -- 2.39.2