kakoune 2
This commit is contained in:
parent
952d1515a5
commit
9fda67c18b
|
@ -0,0 +1 @@
|
|||
/usr/share/kak/autoload
|
|
@ -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>'
|
||||
}
|
|
@ -1,25 +1,35 @@
|
|||
## 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
|
||||
|
|
Loading…
Reference in New Issue