Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ctrl+U in emacs when using evil key bindings

I'm using the wonderful evil package for vim bindings in emacs.

The one key that is not right is Ctrl+U. It is still the emacs prefix, rather than "up".

Does anybody have a solution for that in some lisp code for my .emacs?

Thanks.

like image 296
justingordon Avatar asked Jan 13 '13 09:01

justingordon


People also ask

How do I set key bindings in Emacs?

emacs file. To interactively bind keys for all modes, type M-x global-set-key RET key cmd RET . To bind a key just in the current major mode, type M-x local-set-key RET key cmd RET . See Key Bindings in The GNU Emacs Manual .

How do I unbind a key in Emacs?

Setting the key binding to nil is indeed the way to unbind it. You just need to do that in the right map. Using C-h M-k ( describe-keymap ), from library help-fns+. el will give you a human-readable list of the bindings in a given keymap (bound to a keymap variable, such as global-map .


1 Answers

there is a variable that you can add to your .emacs

(setq evil-want-C-u-scroll t) 

it needs to appear before the call to (require 'evil).

like image 136
bling Avatar answered Sep 19 '22 19:09

bling