Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

evil-want-C-u-scroll doesn't seem to work #3

Open
ghost opened this issue Oct 30, 2014 · 2 comments
Open

evil-want-C-u-scroll doesn't seem to work #3

ghost opened this issue Oct 30, 2014 · 2 comments

Comments

@ghost
Copy link

ghost commented Oct 30, 2014

I find that this mode doesn't seem to work for me. If I keep pressing C-u C-u C-u, it doesn't scroll up at all.

@codygman
Copy link

codygman commented Dec 17, 2018

It's because any evil-* (ex evil-magit) load evil. (setq evil-want-C-u-scroll t) needs to happen before evil is loaded. If you use something like:

(use-package evil
  :ensure t
  :init
  (setq evil-want-C-u-scroll t)
   ;; make * over a symbol look for other instances
  :config
  (evil-mode 1))

Your :config may not happen before evil-magit loads meaning (setq evil-want-C-u-scroll t) takes place after.

@igorcafe
Copy link

It's also not working with me.
Here is my full package config:

(package-initialize)
(setq use-package-always-ensure t)

(unless (package-installed-p 'use-package)
  (package-refresh-contents)
  (package-install 'use-package))
(eval-when-compile (require 'use-package))

(use-package key-chord
  :config
  (key-chord-mode 1))

; the important part here
(use-package evil
  :after key-chord
  :demand t
  :init
  (setq evil-want-C-u-scroll t)     ; ------- here!
  (setq evil-want-keybinding nil)
  :config
  (setq key-chord-two-keys-delay 0.2)
  (key-chord-define evil-insert-state-map "jk" 'evil-normal-state)
  (evil-mode 1))

(use-package evil-collection
  :after evil
  :config
  (setq evil-want-integration t)
  (evil-collection-init))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants