diff options
| author | Miquel Sabaté Solà <mssola@mssola.com> | 2026-01-01 21:39:02 +0100 |
|---|---|---|
| committer | Miquel Sabaté Solà <mssola@mssola.com> | 2026-01-01 21:39:02 +0100 |
| commit | ce33e25d1a3df77c6c3f8d018c9b148c0cc6a9e0 (patch) | |
| tree | ba781ee394e6e8a6a2d49bd428bb15426563fb70 /.config/emacs/init.el | |
| parent | a07865742423936703b3257bfea1d8a847384eb3 (diff) | |
| download | dotfiles-ce33e25d1a3df77c6c3f8d018c9b148c0cc6a9e0.tar.gz dotfiles-ce33e25d1a3df77c6c3f8d018c9b148c0cc6a9e0.zip | |
emacs: add extra root vc markers
Signed-off-by: Miquel Sabaté Solà <mssola@mssola.com>
Diffstat (limited to '.config/emacs/init.el')
| -rw-r--r-- | .config/emacs/init.el | 7 |
1 files changed, 7 insertions, 0 deletions
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 |
