Commit cb5d6afc14cf

Vincent Demeester <vincent@sbr.pm>
2026-01-28 10:07:21
fix(emacs): move project-list-exclude to :config section
The :custom section doesn't work reliably for deferred packages. Moving to :config ensures the exclude patterns are set when project.el actually loads. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 04f8e43
Changed files (1)
dots
.config
emacs
dots/.config/emacs/init.el
@@ -846,7 +846,6 @@ minibuffer, even without explicitly focusing it."
   (project-mode-line t)
   (project-compilation-buffer-name-function 'project-prefixed-buffer-name)
   ;; (project-vc-extra-root-markers '(".project" "Cargo.toml" "pyproject.toml" "requirements.txt" "go.mod"))
-  (project-list-exclude '("/build\\(/\\|\\'\\)" "/node_modules\\(/\\|\\'\\)" "/.cache\\(/\\|\\'\\)" "/target\\(/\\|\\'\\)" "/.direnv\\(/\\|\\'\\)"))
   :bind
   ("C-x p v" . vde/project-magit-status)
   ("C-x p s" . vde/project-vterm)
@@ -856,6 +855,10 @@ minibuffer, even without explicitly focusing it."
   ("C-x p F" . flymake-show-project-diagnostics)
   ("C-x p R" . vde/project-refresh-list)
   :config
+  (setq project-list-exclude
+        '("/build\\(/\\|\\'\\)" "/node_modules\\(/\\|\\'\\)"
+          "/.cache\\(/\\|\\'\\)" "/target\\(/\\|\\'\\)" "/.direnv\\(/\\|\\'\\)"))
+
   (defun vde/project-refresh-list ()
     "Rescan ~/src for projects."
     (interactive)