Use evil integration of ace-jump mode

This commit is contained in:
syl20bnr 2014-09-23 21:42:08 -04:00
parent f13920259f
commit bf939d36ba
2 changed files with 17 additions and 8 deletions

View file

@ -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> 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
------------|------------------------------------------------------------------
`,` | initiate ace jump
`<SPC> ,` | go back to the previous location (before the jump)
`Spacemacs` uses the `evil` integration of [ace-jump mode][ace-jump] which
enables the invocation of `ace-jump-mode` during motions.
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

View file

@ -320,12 +320,12 @@ which require an initialization must be listed explicitly in the list."
:init
(progn
(add-hook 'ace-jump-mode-end-hook 'golden-ratio)
(define-key evil-normal-state-map "," 'ace-jump-mode)
(define-key evil-normal-state-map (kbd "C-,") 'ace-jump-word-mode))
(evil-leader/set-key "SPC" 'evil-ace-jump-char-mode)
(evil-leader/set-key "l" 'evil-ace-jump-line-mode))
:config
(progn
;; 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 ()
(use-package auto-complete