1

Adjust Bufler group definitions

This commit is contained in:
Jessie Hildebrandt 2023-02-01 19:59:19 -05:00
parent acc26e8d72
commit 81d532a164

13
init.el
View File

@ -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). ;; fall through to other groups, so they end up grouped with their project buffers).
(group-not "Special" (group-not "Special"
(group-or "Special" (group-or "Special"
(mode-match "Eshell" (rx bos "eshell-"))
(mode-match "Magit" (rx bos "magit-")) (mode-match "Magit" (rx bos "magit-"))
(mode-match "Forge" (rx bos "forge-")) (mode-match "Forge" (rx bos "forge-"))
(mode-match "Dired" (rx bos "dired")) (mode-match "Dired" (rx bos "dired"))
(mode-match "grep" (rx bos "grep-")) (mode-match "Grep" (rx bos "grep-"))
(mode-match "Compilation" (rx bos "compilation-")) (mode-match "Compilation" (rx bos "compilation-"))
(auto-file))) (auto-file)))
(group (group
@ -878,13 +879,11 @@ DOCSTRING is an optional form that is discarded upon expansion."
;; grouping them by directory (using the parent project keeps, ;; grouping them by directory (using the parent project keeps,
;; e.g. git worktrees with their parent repos). ;; e.g. git worktrees with their parent repos).
(auto-parent-project) (auto-parent-project)
(group-or "Files"
(auto-file))
;; Subgroup collecting special buffers so they are easily distinguished from file buffers.
(group-not "Special" (group-not "Special"
;; This subgroup collects special buffers so they are (auto-file)))
;; 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))))
;; Group remaining buffers by directory, then major mode. ;; Group remaining buffers by directory, then major mode.
(auto-directory) (auto-directory)
(auto-mode))) (auto-mode)))