kakoune 2

This commit is contained in:
yosh 2024-01-17 19:42:37 -05:00
parent 9a8ca755a2
commit ab580d8b98
3 changed files with 22 additions and 11 deletions

View File

@ -0,0 +1 @@
/usr/share/kak/autoload

View File

@ -0,0 +1,4 @@
# hook stuff for making working in pandoc markdown/latex much better
hook global WinSetOption filetype=(markdown|latex) %{
map -docstring "compile to latex pdf" global user l ':w<ret><a-|>pandoc -s -V geometry:margin=3cm --pdf-engine tectonic -o "$kak_buffile.pdf" ~/.config/pandoc_header_includes.yaml "$kak_buffile"<ret>'
}

View File

@ -1,27 +1,33 @@
## keybinds
# kakrc
## commands
define-command -docstring "save and quit" x "write-all; quit"
define-command -docstring "quit with exit code 1" cq "quit 1"
## keybinds
map -docstring "next buffer" global user n ":bn<ret>"
map -docstring "previous buffer" global user <a-n> ":bp<ret>"
map -docstring "yank the selection into the clipboard" global user y "<a-|>wl-copy<ret>"
map -docstring "paste the clipboard" global user p "<a-!>wl-paste -n<ret>"
## visual
# colorscheme
### colorscheme
colorscheme palenight
# scrolling & wrapping
### scrolling & wrapping
set-option global scrolloff 1,3
add-highlighter global/ wrap -word -indent
# tabs
### tabs
set-option global tabstop 4
set-option global indentwidth 4
# statusbar
### statusbar
set-option global ui_options ncurses_status_on_top=true
# line numbers
### line numbers
add-highlighter global/ number-lines -hlcursor
# trailing whitespace
### trailing whitespace
add-highlighter global/ regex \h+$ 0:Error
# clipboard shit
map -docstring "yank the selection into the clipboard" global user y "<a-|>wl-copy<ret>"
map -docstring "paste the clipboard" global user p "<a-!>wl-paste -n<ret>"