dotfiles

my active dotfiles
git clone git://git.jakekoroman.com/dotfiles
Log | Files | Refs | README

kakrc (2136B)


      1 colorscheme plain
      2 add-highlighter global/ number-lines -hlcursor -relative
      3 
      4 set-option global ui_options terminal_status_on_top=true
      5 set-option -add global ui_options terminal_assistant=clippy
      6 set-option global tabstop 4
      7 
      8 # 0 -> tabs for indentation
      9 set-option global indentwidth 0
     10 set-option global scrolloff 3,3
     11 
     12 # default error pattern checks for error or fatal after the error location
     13 # this makes it just look for the location, which makes it more generic for
     14 # other compilers to *just* work. works for all the compilers i care about
     15 # for now: gcc/clang/cproc, go, odin
     16 set-option global make_error_pattern '^([^:\n]+)[:\(](\d+):(?:(\d+))?[:\)]?'
     17 
     18 define-command testcmd %{
     19     prompt -file-completion 'What is your name? ' %{
     20         evaluate-commands %sh{
     21             echo "Hello, $kak_text!" > /tmp/vars
     22             env >> /tmp/vars
     23             title=$(dmenu -p 'say something: ')
     24             printf "info '%s' -title '%s'" "wrote to file /tmp/vars" "$title"
     25         }
     26     }
     27 }
     28 
     29 define-command jrk-set-makecmd-and-make %{
     30     prompt 'makecmd: ' %{
     31         evaluate-commands %{
     32             set-option global makecmd %val{text}
     33             make
     34         }
     35     }
     36 }
     37 
     38 map -docstring 'yank to system clipboard' global user y '<a-|>xclip -selection clipboard<ret>'
     39 map -docstring 'paste from system clipboard' global user p '<!>xclip -selection clipboard -o<ret>'
     40 
     41 map -docstring 'goto next make error' global user [ '<:>make-next-error<ret>'
     42 map -docstring 'goto previous make error' global user ] '<:>make-previous-error<ret>'
     43 
     44 map -docstring 'make' global user q '<:>make<ret>'
     45 map -docstring 'set makecmd and make' global user Q '<:>jrk-set-makecmd-and-make<ret>'
     46 
     47 # colemak dh binds
     48 map global normal n "h"
     49 map global normal N "H"
     50 map global normal e "j"
     51 map global normal E "J"
     52 map global normal i "k"
     53 map global normal I "K"
     54 map global normal o "l"
     55 map global normal O "L"
     56 
     57 map global normal j "e"
     58 map global normal J "E"
     59 map global normal k "n"
     60 map global normal K "N"
     61 map global normal h "o"
     62 map global normal H "O"
     63 map global normal l "i"
     64 map global normal L "I"
     65 
     66 map global normal <a-n> <a-h>
     67 map global normal <a-o> <a-l>