summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrégoire Duchêne <gduchene@awhk.org>2024-07-06 11:51:13 +0100
committerGrégoire Duchêne <gduchene@awhk.org>2024-07-06 11:51:13 +0100
commit175aa76475221aef6dd5c79d7051fb0dfe68701d (patch)
tree318a32576bae45905324f8f31d97fe771f001140
parentdc92d817ea37992201554c1fea910075867129ef (diff)
emacs: Group dotfiles buffers separately
-rw-r--r--emacs/early-init.el6
-rw-r--r--emacs/init.el3
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))