SnooPets20 · 2022-08-08 03:12
I use evil mode with emacs and in order to scroll up with `C-u` like in vim you need to set this variable. I have `(setq evil-want-C-u-scroll t)` in my config (before enabling evil mode, and before requiring it (if that's even needed)) but it doesn't work.
Does someone know why? I know I could set the bindings manually but that's not very clean and I'd prefer to use this built-in variable if possible.
[deleted] · 2022-08-08 06:01
[deleted]
tom_dl · 2022-08-08 06:18
Try using `custom-set-variables` (or just use `:custom` in use-package) rather than the `setq` approach
cgrabenstein · 2022-08-08 09:07
From your post it's not clear if you are using `use-package`, but if you do, try moving the `setq` into the :init block. Not exactly sure why, but for me it works that way.
SnooPets20 · 2022-08-08 18:51
I do use use-package. Putting it in init did solve the issue, but it bothers me a bit.
See, on all my packages I call a function on `config` that loads a separate file where the configuration for that package is stored. If I need to put this line in init, then it's outside its configuration file, which makes it inconsistent.
Anyways, it works. I'll see if I can find a solution to this. I've seen other packages have issues with configuration too, seems you need to call some things before they get loaded.