mirror of
https://github.com/mawww/kakoune.git
synced 2024-11-28 17:13:00 +03:00
fa72d27f9a
* Kak relies on the kakrc file to be in ../share/kak/kakrc relative to kak binary rather than in the same directory * Added an install target to the Makefile
35 lines
827 B
Plaintext
35 lines
827 B
Plaintext
# define color scheme
|
|
colalias value red
|
|
colalias type yellow
|
|
colalias identifier cyan
|
|
colalias string magenta
|
|
colalias error default,red
|
|
colalias keyword blue
|
|
colalias operator yellow
|
|
colalias attribute green
|
|
colalias comment cyan
|
|
colalias macro magenta
|
|
|
|
def -shell-params runtime %{ %sh{
|
|
while [ $# -gt 0 ]; do
|
|
echo "source '${kak_runtime}/$1'"
|
|
shift
|
|
done
|
|
}}
|
|
|
|
%sh{
|
|
if [ -n "${XDG_CONFIG_HOME}" ]; then
|
|
localconfdir="${XDG_CONFIG_HOME}/kak"
|
|
else
|
|
localconfdir="$HOME/.config/kak"
|
|
fi
|
|
if [ -d "${localconfdir}/autoload" ]; then
|
|
for rcfile in ${localconfdir}/autoload/*; do
|
|
echo "try %{ source '${rcfile}' } catch %{ }";
|
|
done
|
|
fi
|
|
if [ -f "${localconfdir}/kakrc" ]; then
|
|
echo "source '${localconfdir}/kakrc'"
|
|
fi
|
|
}
|