From 175aa76475221aef6dd5c79d7051fb0dfe68701d Mon Sep 17 00:00:00 2001 From: GrĂ©goire DuchĂȘne Date: Sat, 6 Jul 2024 11:51:13 +0100 Subject: emacs: Group dotfiles buffers separately --- emacs/early-init.el | 6 +++++- emacs/init.el | 3 ++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/emacs/early-init.el b/emacs/early-init.el index 86bfcb9..1547a41 100644 --- a/emacs/early-init.el +++ b/emacs/early-init.el @@ -1,8 +1,12 @@ +(defconst my/dotfiles-directory + (file-truename (concat user-emacs-directory "../")) + "Directory containing all configuration files.") + ;; Helper Loading Functions (defun my/load-file (filename) "Load FILENAME if it exists within the dotfiles directory." - (load (concat (file-truename user-emacs-directory) "../" + (load (concat my/dotfiles-directory (substitute-in-file-name filename)) :no-error)) (defun my/load-file-variations (filename) diff --git a/emacs/init.el b/emacs/init.el index 0b529eb..a9191ae 100644 --- a/emacs/init.el +++ b/emacs/init.el @@ -53,12 +53,13 @@ ;; Buffer Management (setopt ibuffer-saved-filter-groups - '(("default" + `(("default" ("Emacs" (or (mode . completion-list-mode) (mode . debugger-mode) (mode . help-mode) (mode . messages-buffer-mode) (name . "^\\*scratch\\*$"))) + ("dotfiles" (filename . ,(concat my/dotfiles-directory ".+"))) ("Magit" (name . "^magit")) ("Dired" (mode . dired-mode)) ("Shells" (mode . term-mode)) -- cgit v1.2.3-70-g09d2