From 932147304efd55c7ef140007bfa82e4a46ebf580 Mon Sep 17 00:00:00 2001 From: Timothy DeHerrera Date: Mon, 28 Dec 2020 19:05:46 -0700 Subject: [PATCH] kakoune: load editorconfig --- profiles/develop/kakoune/default.nix | 1 + profiles/develop/kakoune/kakrc | 3 +++ 2 files changed, 4 insertions(+) diff --git a/profiles/develop/kakoune/default.nix b/profiles/develop/kakoune/default.nix index 24bfabbca..90e836085 100644 --- a/profiles/develop/kakoune/default.nix +++ b/profiles/develop/kakoune/default.nix @@ -3,6 +3,7 @@ environment.systemPackages = with pkgs; [ clang-tools + editorconfig-core-c kak-lsp kakoune-config kakoune-unwrapped diff --git a/profiles/develop/kakoune/kakrc b/profiles/develop/kakoune/kakrc index 626e15ae2..3a5d21ce4 100644 --- a/profiles/develop/kakoune/kakrc +++ b/profiles/develop/kakoune/kakrc @@ -13,6 +13,9 @@ hook global BufWritePre ^[^*]+$ %{ try %{ execute-keys -draft \%@s\h+$d } } +# use .editorconfig +hook global WinCreate .* %{editorconfig-load} + # useful mappings map global normal ': delete-buffer' map global normal ': write'