From 97ce8456231b997135be6c5f1afaee08eff2cbb1 Mon Sep 17 00:00:00 2001 From: Marc Coquand Date: Tue, 25 Jun 2024 11:28:53 -0500 Subject: Updates --- config/kak/kakrc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'config/kak') diff --git a/config/kak/kakrc b/config/kak/kakrc index 02213b7..04d11b1 100644 --- a/config/kak/kakrc +++ b/config/kak/kakrc @@ -18,7 +18,7 @@ hook global WinSetOption filetype=(rust|python|nim|go|javascript|typescript|c|cp hook global WinSetOption filetype=(eml|markdown|org) %{ spell } -hook global BufSetOption filetype=(javascript|typescript) %{ +hook global BufSetOption filetype=(javascript|typescript|html) %{ set-option buffer formatcmd "prettier --stdin-filepath=%val{buffile}" hook buffer BufWritePre .* %{format} } @@ -178,7 +178,7 @@ hook global WinCreate .* %{ evaluate-commands %sh{ hook global RegisterModified '"' %{ nop %sh{ case $(uname) in Linux) - echo "$kak_main_reg_dquote" | xclip -selection clipboard -i > /dev/null 2>&1 & ;; + wl-copy -n "$kak_main_reg_dquote" > /dev/null 2>&1 & ;; Darwin) printf "%s" "$kak_main_reg_dquote" | pbcopy ;; esac @@ -262,3 +262,6 @@ let open HTML in | Error e -> Components.Errors.handle log e }; phantom-selection-add-selection ; phantom-selection-iterate-next } } + +# TAGS + -- cgit v1.2.3