diff options
| author | Jake Koroman <jake@jakekoroman.com> | 2026-01-23 16:10:55 -0500 |
|---|---|---|
| committer | Jake Koroman <jake@jakekoroman.com> | 2026-01-23 16:10:55 -0500 |
| commit | 586d25b8ed9f49f0d4e71d1dd98c625e7318ade0 (patch) | |
| tree | f0f10b6ceb7b3b13b80277a97e0df182f93ea08e | |
| parent | acc2d4c4f58d941688106c31d3ff596a1f920b29 (diff) | |
i love kakoune.
| -rw-r--r-- | .gitconfig | 3 | ||||
| -rw-r--r-- | kak/kakrc | 25 |
2 files changed, 27 insertions, 1 deletions
@@ -4,3 +4,6 @@ [sendemail] sendmailCmd = msmtp -a personal + +[init] + defaultBranch = main @@ -1,10 +1,17 @@ colorscheme plain +add-highlighter global/ number-lines -hlcursor -relative + set-option global ui_options terminal_status_on_top=true set-option -add global ui_options terminal_assistant=clippy set-option global tabstop 4 set-option global indentwidth 4 set-option global scrolloff 3,3 +# default error pattern checks for error or fatal after the error location +# this makes it just look for the location, which makes it more generic for +# other compilers to *just* work +set-option global make_error_pattern '^([^:\n]+):(\d+):(?:(\d+):)?' + define-command testcmd %{ prompt -file-completion 'What is your name? ' %{ evaluate-commands %sh{ @@ -16,7 +23,23 @@ define-command testcmd %{ } } -add-highlighter global/ number-lines -hlcursor -relative +define-command jrk-set-makecmd-and-make %{ + prompt 'makecmd: ' %{ + evaluate-commands %{ + set-option global makecmd %val{text} + make + } + } +} + +map -docstring 'yank to system clipboard' global user y '<a-|>xclip -selection clipboard<ret>' +map -docstring 'paste from system clipboard' global user p '<!>xclip -selection clipboard -o<ret>' + +map -docstring 'goto next make error' global user [ '<:>make-next-error<ret>' +map -docstring 'goto previous make error' global user ] '<:>make-previous-error<ret>' + +map -docstring 'make' global user q '<:>make<ret>' +map -docstring 'set makecmd and make' global user Q '<:>jrk-set-makecmd-and-make<ret>' # colemak dh binds map global normal n "h" |
