summaryrefslogtreecommitdiff
path: root/kak/kakrc
diff options
context:
space:
mode:
authorJake Koroman <jake@jakekoroman.com>2026-06-02 13:25:48 -0400
committerJake Koroman <jake@jakekoroman.com>2026-06-02 13:25:48 -0400
commit3c94e93d037f92d3eb4c005cfef40c9321a1d6da (patch)
treef5967f25a8fd1df96431cd0ac98a7c9a038473a1 /kak/kakrc
parent9c869f4a3fb0f42a0c29d051f8c5a8582b16663d (diff)
update kakrc.
Diffstat (limited to 'kak/kakrc')
-rw-r--r--kak/kakrc12
1 files changed, 5 insertions, 7 deletions
diff --git a/kak/kakrc b/kak/kakrc
index 3deb1da..8ed04a7 100644
--- a/kak/kakrc
+++ b/kak/kakrc
@@ -17,10 +17,14 @@ set-option global make_error_pattern '^([^:\n]+)[:\(](\d+):(?:(\d+))?[:\)]?'
hook global ModuleLoaded x11 %{
set global termcmd 'st -e sh -c'
+ 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>'
}
hook global ModuleLoaded wayland %{
set global termcmd 'foot -e sh -c'
+ map -docstring 'yank to system clipboard' global user y '<a-|>wl-copy<ret>'
+ map -docstring 'paste from system clipboard' global user p '<!>wl-paste<ret>'
}
hook global ModuleLoaded tmux %{
@@ -55,16 +59,10 @@ define-command jrk-trim-trailing-whitespace %{
try %{ execute-keys -draft "%%s\h+$<ret>d" }
}
-# 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 'yank to system clipboard' global user y '<a-|>wl-copy<ret>'
-map -docstring 'paste from system clipboard' global user p '<!>wl-paste<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 'save file and run make' global user q '<:>w<ret><:>make<ret>'
map -docstring 'set makecmd and make' global user Q '<:>jrk-set-makecmd-and-make<ret>'
map -docstring 'edit file' global user . '<:>edit '