Set `C-u` to scroll-up and `<SPC> u` to universal-argument

This commit is contained in:
syl20bnr 2014-10-28 22:16:30 -04:00
parent 68ffb5232d
commit 8d5ab34cc5
3 changed files with 13 additions and 0 deletions

View File

@ -45,6 +45,7 @@ _Jump to [Install](#install) for more info and
- [States](#states)
- [Base States](#base-states)
- [Evil leader](#evil-leader)
- [Universal argument](#universal-argument)
- [Micro-states](#micro-states)
- [Color theme](#color-theme)
- [UI elements](#ui-elements)
@ -506,6 +507,14 @@ few examples:
- Save all opened buffers: `<SPC> f S`
- Open (switch) to a buffer with `helm`: `<SPC> b s`
### Universal argument
The universal argument `C-u` is an important command in Emacs but it is also
a very handy Vim key binding to scroll up.
`Spacemacs` binds `C-u` to `scroll-up` and change the universal argument
binding to `<SPC> u`.
### Micro-states
`Spacemacs` defines a wide variety of `micro-states` (temporary overlay maps)

View File

@ -14,6 +14,8 @@
;; no beep pleeeeeease ! (and no visual blinking too please)
(custom-set-variables '(ring-bell-function 'ignore))
(setq visible-bell nil)
;; use C-u as scroll-up
(setq-default evil-want-C-u-scroll t)
;; ---------------------------------------------------------------------------
;; Edit

View File

@ -11,6 +11,8 @@
;; evil-leader key bindings
;; ---------------------------------------------------------------------------
;; Universal argument ---------------------------------------------------------
(evil-leader/set-key "u" 'universal-argument)
;; shell command -------------------------------------------------------------
(evil-leader/set-key "!" 'shell-command)
;; switch back and forth between two last buffers -----------------------------