From 81d532a164508b66c152e1d7b22a308a4af4c020 Mon Sep 17 00:00:00 2001 From: Jessie Hildebrandt Date: Wed, 1 Feb 2023 19:59:19 -0500 Subject: [PATCH] Adjust Bufler group definitions --- init.el | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/init.el b/init.el index 53d2b81..7e3a7cb 100644 --- a/init.el +++ b/init.el @@ -856,10 +856,11 @@ DOCSTRING is an optional form that is discarded upon expansion." ;; fall through to other groups, so they end up grouped with their project buffers). (group-not "Special" (group-or "Special" + (mode-match "Eshell" (rx bos "eshell-")) (mode-match "Magit" (rx bos "magit-")) (mode-match "Forge" (rx bos "forge-")) (mode-match "Dired" (rx bos "dired")) - (mode-match "grep" (rx bos "grep-")) + (mode-match "Grep" (rx bos "grep-")) (mode-match "Compilation" (rx bos "compilation-")) (auto-file))) (group @@ -878,13 +879,11 @@ DOCSTRING is an optional form that is discarded upon expansion." ;; grouping them by directory (using the parent project keeps, ;; e.g. git worktrees with their parent repos). (auto-parent-project) + (group-or "Files" + (auto-file)) + ;; Subgroup collecting special buffers so they are easily distinguished from file buffers. (group-not "Special" - ;; This subgroup collects special buffers so they are - ;; easily distinguished from file buffers. - (group-or "Non-file-backed and neither Dired nor Magit" - (mode-match "Magit Status" (rx bos "magit-status")) - (mode-match "Dired" (rx bos "dired-")) - (auto-file)))) + (auto-file))) ;; Group remaining buffers by directory, then major mode. (auto-directory) (auto-mode)))