From ce33e25d1a3df77c6c3f8d018c9b148c0cc6a9e0 Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Thu, 1 Jan 2026 21:39:02 +0100 Subject: emacs: add extra root vc markers MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Miquel Sabaté Solà --- .config/emacs/init.el | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.config/emacs/init.el b/.config/emacs/init.el index b74f616..f76ec82 100644 --- a/.config/emacs/init.el +++ b/.config/emacs/init.el @@ -463,6 +463,13 @@ (bobp) (eolp)) (evil-insert-state))) +;; Extra configuration for project.el. +(with-eval-after-load 'project + ;; If a directory has a Makefile, chances are that it's its own project. Also + ;; add a ".project" file which can be added as a last resource (i.e. just like + ;; with ".projectile"). + (setq project-vc-extra-root-markers '("Makefile" ".project"))) + ;; I mostly stick to Git CLI, but it's really nice when staging chunks, checking ;; diffs, showing logs; and similar scenarios where Git can be tedious. (use-package magit -- cgit v1.2.3