# Poor man's distraction-free writing

**URL:** <https://discuss.kakoune.com/t/poor-mans-distraction-free-writing/1907>\
**Category:** Recipes & Guides\
**Tags:** prose\
**Created:** [October 17, 2021, 11:30am UTC](https://discuss.kakoune.com/t/poor-mans-distraction-free-writing/1907 "2021-10-17T11:30:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ftonneau](https://discuss.kakoune.com/user_avatar/discuss.kakoune.com/ftonneau/32/295_2.png) [@ftonneau](https://discuss.kakoune.com/u/ftonneau)\
**Post date:** [October 17, 2021, 11:30am UTC](https://discuss.kakoune.com/t/poor-mans-distraction-free-writing/1907/1 "2021-10-17T11:30:10Z")

</div>

Replying to these two questions:

> [@How to hide status line?](https://discuss.kakoune.com/t/how-to-hide-status-line/1906/3):
>
> You can also change the StatusLine face.

> [@Distraction-free typing?](https://discuss.kakoune.com/t/distraction-free-typing/1379):
>
> Hi! I’m looking for a way to turn kakoune into a more distraction-free experience, a bit like goyo.vim. Is there a plugin for that? At least, I’d like to completely disable auto-completion but couldn’t find how to do this, only how to close the current completion window.

these 4 lines of code give you an ersatz of distraction-free typing mode:

```
set-face window LineNumbers black
set-face window LineNumberCursor black
set-option window modelinefmt ''
add-highlighter window/free number-lines -min-digits 10 -separator ' '

```

The first 3 lines hide or remove information we don’t want. The last line creates a left margin of 20 blank chars (both -min-digits and -separator string length are limited to 10 bytes). The amount you want depends on your usual terminal window width.

This a far cry from vim’s goyo or similar plugins (which make space on each side of the writing space by creating, then hiding, window splits), but here you go.

Screenshot:

 ![zen](https://discuss.kakoune.com/uploads/default/original/1X/9f6c82c2d5de33237126c67d4da947fde10e2793.png)
