mirror of
https://github.com/abo-abo/avy.git
synced 2025-10-13 13:33:03 +00:00
avy-jump.el (avy-setup-default): Setup some bindings
* README.md: Add a description. Fixes #10
This commit is contained in:
parent
f2290f262a
commit
32003515c8
10
README.md
10
README.md
@ -76,3 +76,13 @@ After <kbd>M-g e</kbd>:
|
|||||||
### Other commands
|
### Other commands
|
||||||
|
|
||||||
There are some more commands which you can explore yourself by looking at the code.
|
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`.
|
||||||
|
@ -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.
|
;; Copyright (C) 2015 Free Software Foundation, Inc.
|
||||||
|
|
||||||
@ -437,6 +437,12 @@ ARG lines can be used."
|
|||||||
(line-end-position)))
|
(line-end-position)))
|
||||||
pad))))
|
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-keys 'avy-keys "0.1.0")
|
||||||
(define-obsolete-variable-alias 'avi-background 'avy-background "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")
|
(define-obsolete-variable-alias 'avi-word-punc-regexp 'avy-word-punc-regexp "0.1.0")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user