# Great kakrc's (like Mawww's)

**URL:** <https://discuss.kakoune.com/t/great-kakrcs-like-mawwws/57>\
**Category:** Resources\
**Created:** [September 20, 2018, 12:42am UTC](https://discuss.kakoune.com/t/great-kakrcs-like-mawwws/57 "2018-09-20T00:42:45Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![robertmeta](https://discuss.kakoune.com/user_avatar/discuss.kakoune.com/robertmeta/32/833_2.png) [@robertmeta](https://discuss.kakoune.com/u/robertmeta)\
**Post date:** [September 20, 2018, 12:42am UTC](https://discuss.kakoune.com/t/great-kakrcs-like-mawwws/57/1 "2018-09-20T00:42:45Z")

</div>

I don’t generally like to encourage any form of cargo culting – but there is a lot of great stuff in this kakrc. We can use this thread to pull out interesting stuff, if really interesting and stand alone put under Recipes.

> <https://github.com/mawww/config/blob/master/kakrc>

---

<div class="post-metadata">

**Author:** ![robertmeta](https://discuss.kakoune.com/user_avatar/discuss.kakoune.com/robertmeta/32/833_2.png) [@robertmeta](https://discuss.kakoune.com/u/robertmeta)\
**Post date:** [September 20, 2018, 1:14am UTC](https://discuss.kakoune.com/t/great-kakrcs-like-mawwws/57/2 "2018-09-20T01:14:28Z")

</div>

I am not certain exactly how the xml tag matching is supposed to function

> <https://github.com/mawww/config/blob/master/kakrc#L38>

---

<div class="post-metadata">

**Author:** ![Screwtapello](https://discuss.kakoune.com/user_avatar/discuss.kakoune.com/screwtapello/32/12_2.png) [@Screwtapello](https://discuss.kakoune.com/u/Screwtapello)\
**Post date:** [September 20, 2018, 3:33am UTC](https://discuss.kakoune.com/t/great-kakrcs-like-mawwws/57/3 "2018-09-20T03:33:21Z")

</div>

> `map global normal = ':prompt math: %{exec "a%val{text}<lt>esc>|bc<lt>ret>"}<ret>'`

Today I learned about `%val{text}`.

> `define-command find -params 1 -shell-candidates %{ ag -g '' --ignore "$kak_opt_ignored_files" } %{ edit %arg{1} }`

…OK, that’s pretty great. I’ll steal that right now (but of course I’ll use ripgrep instead of ag).

---

<div class="post-metadata">

**Author:** ![TeddyDD](https://discuss.kakoune.com/user_avatar/discuss.kakoune.com/teddydd/32/21_2.png) [@TeddyDD](https://discuss.kakoune.com/u/TeddyDD)\
**Post date:** [September 20, 2018, 7:24am UTC](https://discuss.kakoune.com/t/great-kakrcs-like-mawwws/57/4 "2018-09-20T07:24:37Z")

</div>

I like to browse other kakrcs, plenty of new things to learn (and steal 😉) Recently I had found [SolitudeSF’s config](https://github.com/SolitudeSF/dot/blob/master/kak/kakrc), and I was inspired to remap space to ,

---

<div class="post-metadata">

**Author:** ![robertmeta](https://discuss.kakoune.com/user_avatar/discuss.kakoune.com/robertmeta/32/833_2.png) [@robertmeta](https://discuss.kakoune.com/u/robertmeta)\
**Post date:** [September 20, 2018, 8:20am UTC](https://discuss.kakoune.com/t/great-kakrcs-like-mawwws/57/5 "2018-09-20T08:20:15Z")

</div>

> <https://github.com/SolitudeSF/dot/blob/master/kak/kakrc#L106-L110>

I know what these cases are – not sure I get the value of the defs?

---

<div class="post-metadata">

**Author:** ![SolitudeSF](https://discuss.kakoune.com/user_avatar/discuss.kakoune.com/solitudesf/32/22_2.png) [@SolitudeSF](https://discuss.kakoune.com/u/SolitudeSF)\
**Post date:** [September 20, 2018, 9:43am UTC](https://discuss.kakoune.com/t/great-kakrcs-like-mawwws/57/6 "2018-09-20T09:43:49Z")

</div>

i added them just in case i need to convert something, but never actually had the need to use them. might as well delete them to keep config cleaner.

---

<div class="post-metadata">

**Author:** ![robertmeta](https://discuss.kakoune.com/user_avatar/discuss.kakoune.com/robertmeta/32/833_2.png) [@robertmeta](https://discuss.kakoune.com/u/robertmeta)\
**Post date:** [October 14, 2018, 12:37am UTC](https://discuss.kakoune.com/t/great-kakrcs-like-mawwws/57/7 "2018-10-14T00:37:54Z")

</div>

[https://github.com/shachaf/kak](https://github.com/shachaf/kak) is worth adding to the list – I might roll these up to the top level.

---

<div class="post-metadata">

**Author:** ![alexherbo2](https://discuss.kakoune.com/user_avatar/discuss.kakoune.com/alexherbo2/32/1140_2.png) [@alexherbo2](https://discuss.kakoune.com/u/alexherbo2)\
**Post date:** [April 14, 2019, 10:34pm UTC](https://discuss.kakoune.com/t/great-kakrcs-like-mawwws/57/8 "2019-04-14T22:34:11Z")

</div>

I like [this one](https://github.com/mawww/config/commit/699b2bf2d9937158b2247fb220367c4669062039) from @mawww:

```auto
define-command delete-buffers-matching -params 1 %{
  evaluate-commands -buffer * %{
    evaluate-commands %sh{ case "$kak_buffile" in $1) echo delete-buffer ;; esac }
  }
}

```

---

<div class="post-metadata">

**Author:** ![alexherbo2](https://discuss.kakoune.com/user_avatar/discuss.kakoune.com/alexherbo2/32/1140_2.png) [@alexherbo2](https://discuss.kakoune.com/u/alexherbo2)\
**Post date:** [April 14, 2019, 10:45pm UTC](https://discuss.kakoune.com/t/great-kakrcs-like-mawwws/57/9 "2019-04-14T22:45:19Z")

</div>

[single-process-pipe](https://github.com/occivink/config/blob/master/.config/kak/single-process-pipe.kak) from @occivink is also interesting. With a few checks it could be quite robust.
