From df8b63a78f3c9aebacd8b718ecda9905a8d142a4 Mon Sep 17 00:00:00 2001 From: Daniel Fichtinger Date: Fri, 13 Jun 2025 14:22:37 -0400 Subject: [PATCH] AutoYADM commit: 2025-06-13 14:22:37 --- .config/btop/btop.conf | 2 +- .config/kak/autoload/detection/editorconfig.kak | 15 +++++++++++---- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/.config/btop/btop.conf b/.config/btop/btop.conf index 9e0ee914..1db1414c 100644 --- a/.config/btop/btop.conf +++ b/.config/btop/btop.conf @@ -63,7 +63,7 @@ proc_sorting = "memory" proc_reversed = False #* Show processes as a tree. -proc_tree = False +proc_tree = True #* Use the cpu graph colors in the process list. proc_colors = True diff --git a/.config/kak/autoload/detection/editorconfig.kak b/.config/kak/autoload/detection/editorconfig.kak index 69fe4a6a..5d1b1711 100644 --- a/.config/kak/autoload/detection/editorconfig.kak +++ b/.config/kak/autoload/detection/editorconfig.kak @@ -1,6 +1,13 @@ # http://editorconfig.org/#file-format-details # ‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾ +# Patch by Daniel : +# Support editorconfig for scratch buffers. +# If we're in a scratch buffer, we check the filetype, +# create a temp file with the appropriate extension, and pass +# it to editorconfig. If there's no .editorconfig in /tmp, +# we copy the one from $HOME. We clean up the files after. + # Detection # ‾‾‾‾‾‾‾‾‾ @@ -90,10 +97,10 @@ define-command editorconfig-load -params ..1 -docstring "editorconfig-load [file } ' ;; esac - # if [ -n "$scratch" ]; then - # rm "/tmp/.editorconfig" - # rm "$file" - # fi + if [ -n "$scratch" ]; then + rm "/tmp/.editorconfig" + rm "$file" + fi } } complete-command editorconfig-load file