Adjust Bufler group definitions
This commit is contained in:
parent
acc26e8d72
commit
81d532a164
13
init.el
13
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)))
|
||||
|
Loading…
Reference in New Issue
Block a user