Quoting from my response to:
As explained in the FILES section of
man kak
, on startup Kakoune reads all of the*.kak
files/scripts present in yourautoload
directory (or any subdirectory of it). If you have no customautoload
directory, then Kakoune falls back on the default, system-wiseautoload
directory, which you can probably find as/usr/share/kak/autoload
on your system.
Judging from what you say, it seems you have no custom autoload
directory, which would explain why the systemwise mail.kak file is loaded by default.
One way to get rid of this behavior is to create an autoload
subdirectory in your HOME/.config/kak
directory, and then to create a filetype
folder in this custom autoload subdirectory. You can then populate this custom filetype
folder with symlinks to all of the systemwise files that you want to use unmodified. For any file that you do want to modify (e.g., mail.kak), do not include a symlink to it; rather, copy the actual file to filetype
, then modify this local copy as you wish.
I doubt you’ll find this solution “easy”, but it is recommended in the man page, as it gives you full control over what is vs. is not sourced when starting Kakoune.