Hello everyone.
I use doom emacs to edit math notes, full of latex fragments, in org mode.
I really need to have a quick way to toggle the renderization of all fragments in a document, as if I was going to each one of them with the cursor and doing `M-x org-latex-preview`, which of course I have keymapped to an easier binding (`SPC l p`).
I saw on the web that a way to do this would be prepending `C-u` to `org-latex-preview` (in my case `C-u SPC l p`). But `C-u` is bound to evil-scroll-up, thus preventing me to do any other combination starting with that `C-u`.
So I've been trying to disable the binding of `C-u` from `evil-scroll-up`.
Note: in the afterthought, that is not really what I should have been doing, because instead it would be way better to use something like `SPC l l p`.
Anyway, I tried putting this line in my `~/.doom.d/config.el`:
`(defvar evil-want-C-u-scroll nil) ; moved the universal arg to <leader> u`
Line that I copy pasted (yankyankput) from
`~/.emacs.d/modules/editor/evil/config.el`,
where I edited the original as well, putting it to `nil` (originally I think it was `t`).
None of this worked, so while looking the `C-h v evil-scroll-up` I pressed the very appealing button `Forget`.
So now the `evil-scroll-up` command does not exist anymore (which is kind of bad by itself, I may want to keep that functionality) and when I press `C-u` I just get this message:
`Wrong type argument; commandp, evil-scroll-up`
Note: the "p" in "commandp" is not a typo, I don't know why it's there but it is.
This clearly means the evil keybinding is still the same, but now the command it's supposed to call is not there because I made emacs "Forget" it.
Can someone please help me undo this mess, and maybe get comfortable in juggling with these evil/non evil bindings?
Also if possible I really would love to always only edit `~/.doom.d/config.el` and/or `~/.doom.d/init.el`, as having all my customizations in a couple of files makes me sleep well at night, knowing that if my laptop gets run over by a truck I still have that one or two files (backed up somewhere else) that should make emacs work my way with a fresh install on a different machine, and knowing that when anything breaks it must be something I did in there.
Many thanks to anyone who's got something to tell me.