Set `C-u` to scroll-up and `<SPC> u` to universal-argument
This commit is contained in:
parent
68ffb5232d
commit
8d5ab34cc5
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 -----------------------------
|
||||
|
|
Loading…
Reference in New Issue