Move kakoune module
This commit is contained in:
parent
a4494d86d4
commit
05396972fa
12 changed files with 10 additions and 10 deletions
33
user/kakoune/indent.kak
Normal file
33
user/kakoune/indent.kak
Normal file
|
@ -0,0 +1,33 @@
|
|||
# {{@@ header() @@}}
|
||||
# _ __ _
|
||||
# | |/ /__ _| | _____ _ _ _ __ ___
|
||||
# | ' // _` | |/ / _ \| | | | '_ \ / _ \
|
||||
# | . \ (_| | < (_) | |_| | | | | __/
|
||||
# |_|\_\__,_|_|\_\___/ \__,_|_| |_|\___|
|
||||
|
||||
set global tabstop 4
|
||||
|
||||
hook global BufCreate .*\.py %{
|
||||
set global indentwidth 4
|
||||
}
|
||||
|
||||
hook global BufCreate .*\.nix %{
|
||||
set global indentwidth 2
|
||||
}
|
||||
|
||||
#################################################################
|
||||
# Spaces
|
||||
#################################################################
|
||||
|
||||
set global indentwidth 4
|
||||
|
||||
# use spaces insted of tabs
|
||||
hook global BufCreate .* %{
|
||||
hook buffer InsertChar \t %{
|
||||
exec -draft -itersel h@
|
||||
} -group replace-tabs-with-spaces
|
||||
}
|
||||
|
||||
hook global WinSetOption filetype=makefile %{
|
||||
remove-hooks buffer replace-tabs-with-spaces
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue