Reorganize evil-repeat and other evil things #151
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary of Changes
Symex is coupled to evil in a few different ways:
.
) functionalityu
/C-r
), search forward/backward (/
,#
, etc.)This PR reorganizes and moves things to disentangle Symex and Evil a bit, so that it should be easier to remove Evil (or reduce our reliance on it). FYI @devcarbon-com
Basically, this PR moves the first item above (i.e., evil-repeat) into a dedicated module to hold evil-related things. The second is moved to user config (explained in the README), and the third (the evil state) is moved into Rigpa (and counts are now supported directly in the lithium mode --- it was easy, just needed to bind the numbers to the
digit-argument
command 🤷 ). It doesn't address the fourth (evil in the implementation) at all.So evil in the implementation and evil-repeat are the main things to address now (they have always been, but now the other noise may be more out of the way). I'm not sure how easy it would be to remove evil-repeat, and whether we would need to provide an alternative implementation if we do remove it? There might still be some other annoying uses of Evil here and there, I'm not totally sure. But hopefully it won't be too thorny to remove them (noting these in case you're planning to give it a go @devcarbon-com 🙂 ).
Public Domain Dedication
(Why: The freely released, copyright-free work in this repository represents an investment in a better way of doing things called attribution-based economics. Attribution-based economics is based on the simple idea that we gain more by giving more, not by holding on to things that, truly, we could only create because we, in our turn, received from others. As it turns out, an economic system based on attribution -- where those who give more are more empowered -- is significantly more efficient than capitalism while also being stable and fair (unlike capitalism, on both counts), giving it transformative power to elevate the human condition and address the problems that face us today along with a host of others that have been intractable since the beginning. You can help make this a reality by releasing your work in the same way -- freely into the public domain in the simple hope of providing value. Learn more about attribution-based economics at drym.org, tell your friends, do your part.)