summaryrefslogtreecommitdiff
path: root/.config/emacs/init.el
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-09-22 15:34:52 +0200
committerThomas Voss <mail@thomasvoss.com> 2024-09-22 15:34:52 +0200
commit2ef0e072150251d2cab2f281df03ca880ad9ada6 (patch)
tree85b8d220edfdcf31ba71008d1dc20f0a2cb3f9d6 /.config/emacs/init.el
parentdea75596e412c3ae387a4ea08ce818099183807b (diff)
emacs: Use project-remember-projects-under
Diffstat (limited to '.config/emacs/init.el')
-rw-r--r--.config/emacs/init.el21
1 files changed, 7 insertions, 14 deletions
diff --git a/.config/emacs/init.el b/.config/emacs/init.el
index f966575..2aab31e 100644
--- a/.config/emacs/init.el
+++ b/.config/emacs/init.el
@@ -670,20 +670,13 @@ ligatures for `c-ts-mode', the following two entries could be added:
(global-ligature-mode))
;;; Set Project List
-(defun x-set-project-list ()
- (interactive)
- (when-let ((no-dotfiles "\\`[^.]")
- (repo-directory (getenv "REPODIR"))
- (level-1 (directory-files repo-directory :full no-dotfiles)))
- (setq
- project--list
- (cl-loop for directory in level-1
- append (mapcar #'list (directory-files
- directory :full no-dotfiles))))
- (project--write-project-list)))
-
-(with-eval-after-load 'project
- (x-set-project-list))
+(use-package project
+ :ensure nil
+ :custom
+ (project-remember-projects-under
+ (or (getenv "REPODIR")
+ (expand-file-name "code/repo" (getenv "HOME")))
+ :recursive))
;;; C-Style
(setq-default