Installation quesiton
m-kru opened this issue · 3 comments
In the installation section you mention about 2 options:
- Add
auto-pairs.kak
to your autoload
or
- source it manually.
Which one is done by require-module auto-pairs
?
What does the opposite option look like?
If you add auto-pairs.kak repository to your autoload, the files will be sourced by Kakoune at startup. You can also use the source
command to load the file manually.
The file defines a module that you have to require in your kakrc once sourced.
That is a lot of steps.
- Place in autoload to be sourced,
require-module
to do something (I do not know what as it already has been sourced),auto-pairs-enable
Do you know why 1 and 2 are two distinct steps. At first glance it looks like they could be merged.
Scripts define modules, but do nothing.
Source and require are separated to not introduce loading order issues, e.g. with plugins having dependencies.
When required, the module lets you acceed the commands, it does not install hooks, mappings, etc. You use the enable commands, etc. for that.