Use evil integration of ace-jump mode
This commit is contained in:
parent
f13920259f
commit
bf939d36ba
19
README.md
19
README.md
|
@ -268,12 +268,21 @@ Key Binding | Description
|
||||||
`<SPC> j l` | go to the end of line (and set a mark at the previous location in the line)
|
`<SPC> j l` | go to the end of line (and set a mark at the previous location in the line)
|
||||||
`<SPC> z z` | lock the cursor at the center of the screen
|
`<SPC> z z` | lock the cursor at the center of the screen
|
||||||
|
|
||||||
#### [ace-jump mode][ace-jump]
|
#### Vim motions with ace-jump mode
|
||||||
|
|
||||||
Key Binding | Description
|
`Spacemacs` uses the `evil` integration of [ace-jump mode][ace-jump] which
|
||||||
------------|------------------------------------------------------------------
|
enables the invocation of `ace-jump-mode` during motions.
|
||||||
`,` | initiate ace jump
|
|
||||||
`<SPC> ,` | go back to the previous location (before the jump)
|
It is useful for deleting visually a set of lines, try the following sequence
|
||||||
|
in a buffer containing some text:
|
||||||
|
|
||||||
|
d <SPC> l
|
||||||
|
|
||||||
|
Key Binding | Description
|
||||||
|
--------------|------------------------------------------------------------------
|
||||||
|
`<SPC> <SPC>` | initiate ace jump char mode
|
||||||
|
`<SPC> l` | initiate ace jump line mode
|
||||||
|
``<SPC> ``` | go back to the previous location (before the jump)
|
||||||
|
|
||||||
#### Buffers and Files
|
#### Buffers and Files
|
||||||
|
|
||||||
|
|
|
@ -320,12 +320,12 @@ which require an initialization must be listed explicitly in the list."
|
||||||
:init
|
:init
|
||||||
(progn
|
(progn
|
||||||
(add-hook 'ace-jump-mode-end-hook 'golden-ratio)
|
(add-hook 'ace-jump-mode-end-hook 'golden-ratio)
|
||||||
(define-key evil-normal-state-map "," 'ace-jump-mode)
|
(evil-leader/set-key "SPC" 'evil-ace-jump-char-mode)
|
||||||
(define-key evil-normal-state-map (kbd "C-,") 'ace-jump-word-mode))
|
(evil-leader/set-key "l" 'evil-ace-jump-line-mode))
|
||||||
:config
|
:config
|
||||||
(progn
|
(progn
|
||||||
;; ace-jump quick access
|
;; ace-jump quick access
|
||||||
(evil-leader/set-key "," 'ace-jump-mode-pop-mark))))
|
(evil-leader/set-key "`" 'ace-jump-mode-pop-mark))))
|
||||||
|
|
||||||
(defun spacemacs/init-auto-complete ()
|
(defun spacemacs/init-auto-complete ()
|
||||||
(use-package auto-complete
|
(use-package auto-complete
|
||||||
|
|
Loading…
Reference in a new issue