kakoune/share/kak/kakrc
Maxime Coste 518c494104 Rename 'macro' face to more general 'meta'
As it is used in python/ruby for 'import' which is not really
a macro.
2014-07-13 16:57:49 +01:00

35 lines
786 B
Plaintext

# define color scheme
face value red
face type yellow
face identifier cyan
face string magenta
face error default,red
face keyword blue
face operator yellow
face attribute green
face comment cyan
face meta 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
}