set global startup_info_version 20200117 colorscheme default face global PrimaryCursor black,green+fg set global disabled_hooks '.+-highlight' set global ui_options ncurses_assistant=none set global ui_options ncurses_enable_mouse=no set -add global ui_options terminal_enable_mouse=false # set global autoinfo "" set global autocomplete "" # map a-X to ,X to work in all terminal emulators map global user ! map global user & map global user ( map global user ) map global user * map global user + map global user , # noop map global user . map global user / map global user 0 map global user 1 map global user 2 map global user 3 map global user 4 map global user 5 map global user 6 map global user 7 map global user 8 map global user 9 map global user : map global user map global user map global user = map global user map global user ? map global user @ map global user A map global user B map global user C map global user D map global user E map global user F map global user G map global user H map global user I map global user J map global user K map global user L map global user M map global user N map global user O map global user P map global user Q map global user R map global user S map global user T map global user U map global user V map global user W map global user X map global user Y map global user Z map global user [ map global user ] map global user _ map global user ` map global user a map global user b map global user c map global user d map global user e map global user f map global user g map global user h map global user i map global user j map global user k map global user l map global user m map global user n map global user o map global user p map global user q map global user r map global user s map global user t map global user u map global user v map global user w map global user x map global user y map global user z map global user { map global user | map global user } define-command cq "quit 1" define-command bd "delete-buffer" map global prompt -docstring abort map global goto n ': bn' map global goto p ': bp' hook global ModuleLoaded x11 %{ set global termcmd "urxvt -e sh -c" } addhl global/ wrap addhl global/matching-brackets show-matching # :sh # 05oct2019 +leah+ define-command -params .. \ -docstring %{sh : run shell command The symbol @ is replaced with the current file name.} \ sh %{ evaluate-commands %sh{ output=$(mktemp -d "${TMPDIR:-/tmp}"/kak-sh.XXXXXXXX)/fifo mkfifo ${output} ( bash -c 'sh -c "${*//@/$kak_buffile}"; printf "\n[exit status %d]\n" $?' \ - "$@" >${output} 2>&1 ) >/dev/null 2>&1 delete-buffer } }" }} # https://github.com/mawww/kakoune/issues/1192 declare-option -hidden range-specs show_matching_range hook global -group kakrc-matching-ranges InsertChar '[[\](){}<>]' %{ eval -draft %{ try %{ exec ';hm..;' set window show_matching_range %val{timestamp} "%val{selection_desc}|MatchingChar" } catch %{ set window show_matching_range 0 } hook window -once InsertChar '[^[\](){}<>]' %{ set window show_matching_range 0 } hook window -once ModeChange .* %{ set window show_matching_range 0 } hook window -once InsertMove .* %{ set window show_matching_range 0 } } } add-highlighter global/ ranges show_matching_range define-command lc %{ exec 'ZGG./closetex 2>&1zdgl' } define-command lca %{ exec 'ZGG./closetex -azdgl' }