[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master 3200351 16/17: avy-jump.el (avy-setup-default): Setup some
From: |
Oleh Krehel |
Subject: |
[elpa] master 3200351 16/17: avy-jump.el (avy-setup-default): Setup some bindings |
Date: |
Fri, 08 May 2015 13:42:15 +0000 |
branch: master
commit 32003515c8efa2cf38b62c45499dae30bc7cacb8
Author: Oleh Krehel <address@hidden>
Commit: Oleh Krehel <address@hidden>
avy-jump.el (avy-setup-default): Setup some bindings
* README.md: Add a description.
Fixes #10
---
README.md | 10 ++++++++++
avy-jump.el | 8 +++++++-
2 files changed, 17 insertions(+), 1 deletions(-)
diff --git a/README.md b/README.md
index 4755742..01bf587 100644
--- a/README.md
+++ b/README.md
@@ -76,3 +76,13 @@ After <kbd>M-g e</kbd>:
### Other commands
There are some more commands which you can explore yourself by looking at the
code.
+
+### Bindings
+
+You add this to your config to bind some stuff:
+
+```elisp
+(avy-setup-default)
+```
+
+It will bind, for example, `avy-isearch` to <kbd>C-'</kbd> in
`isearch-mode-map`, so that you can select one of the currently visible
`isearch` candidates using `avy`.
diff --git a/avy-jump.el b/avy-jump.el
index 60b9160..d6bb52e 100644
--- a/avy-jump.el
+++ b/avy-jump.el
@@ -1,4 +1,4 @@
-;;; avy-jump.el --- jump to things tree-style
+;;; avy-jump.el --- jump to things tree-style. -*- lexical-binding: t -*-
;; Copyright (C) 2015 Free Software Foundation, Inc.
@@ -437,6 +437,12 @@ ARG lines can be used."
(line-end-position)))
pad))))
+;;;###autoload
+(defun avy-setup-default ()
+ "Setup the default shortcuts."
+ (eval-after-load 'isearch
+ '(define-key isearch-mode-map (kbd "C-'") 'avy-isearch)))
+
(define-obsolete-variable-alias 'avi-keys 'avy-keys "0.1.0")
(define-obsolete-variable-alias 'avi-background 'avy-background "0.1.0")
(define-obsolete-variable-alias 'avi-word-punc-regexp 'avy-word-punc-regexp
"0.1.0")
- [elpa] master 5677270 04/17: Move obsoletes to one place, (continued)
- [elpa] master 5677270 04/17: Move obsoletes to one place, Oleh Krehel, 2015/05/08
- [elpa] master 18cf1ef 07/17: README.md: add, Oleh Krehel, 2015/05/08
- [elpa] master 6c1f2f6 02/17: Move from "avi-" to "avy-", leave old stuff obsolete, Oleh Krehel, 2015/05/08
- [elpa] master 974e55b 09/17: avy-jump.el (avy--line): Avoid image-mode and doc-view-mode, Oleh Krehel, 2015/05/08
- [elpa] master 5d2979b 01/17: Initial import, Oleh Krehel, 2015/05/08
- [elpa] master e9d2e60 08/17: Customize the leading char style for chars and words, Oleh Krehel, 2015/05/08
- [elpa] master 903e172 12/17: Special-case char RET to allow for jumping to end-of-lines., Oleh Krehel, 2015/05/08
- [elpa] master 487d5ea 11/17: Abstract windows and rely on subword, Oleh Krehel, 2015/05/08
- [elpa] master ca1ca04 14/17: Add avy-goto-subword-1, Oleh Krehel, 2015/05/08
- [elpa] master e4f493e 10/17: README.md: Add command descriptions, Oleh Krehel, 2015/05/08
- [elpa] master 3200351 16/17: avy-jump.el (avy-setup-default): Setup some bindings,
Oleh Krehel <=
- [elpa] master b2112e0 13/17: avy-jump.el (avy-goto-word-1): Fix for ".", Oleh Krehel, 2015/05/08
- [elpa] master f2290f2 15/17: avy.el: Update commentary, Oleh Krehel, 2015/05/08
- [elpa] master 876d210 17/17: Add 'packages/avy/' from commit '32003515c8efa2cf38b62c45499dae30bc7cacb8', Oleh Krehel, 2015/05/08