From 893dd952a5e128ae71d9e9c93504d9a1092388a6 Mon Sep 17 00:00:00 2001 From: Andrew Thorp Date: Sun, 20 Oct 2019 10:26:17 -0400 Subject: [PATCH] Update README.md (#906) Add Kakoune integration instructions --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index 0d14b68..ddca8a4 100644 --- a/README.md +++ b/README.md @@ -810,6 +810,14 @@ the [Python Language Server](https://github.com/palantir/python-language-server) Use [python-black](https://atom.io/packages/python-black). +### Kakoune + +Add the following hook to your kakrc, then run black with `:format`. +``` +hook global WinSetOption filetype=python %{ + set-option window formatcmd 'black -q -' +} +``` ### Other editors -- 2.39.2