aboutsummaryrefslogtreecommitdiff
path: root/.config
diff options
context:
space:
mode:
Diffstat (limited to '.config')
-rw-r--r--.config/emacs/init.el7
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