Skip to content

Commit

Permalink
kakoune: load editorconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
nrdxp committed Dec 29, 2020
1 parent 58b8d41 commit 9321473
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions profiles/develop/kakoune/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

environment.systemPackages = with pkgs; [
clang-tools
editorconfig-core-c
kak-lsp
kakoune-config
kakoune-unwrapped
Expand Down
3 changes: 3 additions & 0 deletions profiles/develop/kakoune/kakrc
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ hook global BufWritePre ^[^*]+$ %{
try %{ execute-keys -draft \%@s\h+$<ret>d }
}

# use .editorconfig
hook global WinCreate .* %{editorconfig-load}

# useful mappings
map global normal <a-q> ': delete-buffer<ret>'
map global normal <c-s> ': write<ret>'
Expand Down

0 comments on commit 9321473

Please sign in to comment.