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).
(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)))