1
1
mirror of https://github.com/mawww/kakoune.git synced 2024-11-16 04:36:04 +03:00
kakoune/share/kak/kakrc

35 lines
827 B
Plaintext
Raw Normal View History

# 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{
2013-03-22 16:45:52 +04:00
while [ $# -gt 0 ]; do
echo "source '${kak_runtime}/$1'"
shift
done
}}
%sh{
2013-03-22 16:45:52 +04:00
if [ -n "${XDG_CONFIG_HOME}" ]; then
localconfdir="${XDG_CONFIG_HOME}/kak"
else
localconfdir="$HOME/.config/kak"
fi
2013-03-22 16:45:52 +04:00
if [ -d "${localconfdir}/autoload" ]; then
for rcfile in ${localconfdir}/autoload/*; do
echo "try %{ source '${rcfile}' } catch %{ }";
done
fi
2013-03-22 16:45:52 +04:00
if [ -f "${localconfdir}/kakrc" ]; then
echo "source '${localconfdir}/kakrc'"
fi
}