aboutsummaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorNicholas Rodrigues Lordello <[email protected]>2025-07-29 16:54:15 +0200
committerNicholas Rodrigues Lordello <[email protected]>2025-07-29 16:56:25 +0200
commitc4afa6ee03cb09131e33763029e56a1fbc0cf811 (patch)
treea4044bc0a677784b3b8f8394e1ba96806f2d94a5 /config
parente47bd88f18fa0fba96585fc9339e461685317a91 (diff)
Project Remembering Utility
All our projects are under `~/Developer/*/*`, add a new command for remembering our projects (basically - we want a recursive depth which isn't supported by `project-remember-projects-under`.
Diffstat (limited to 'config')
-rw-r--r--config/emacs/init.el11
1 files changed, 11 insertions, 0 deletions
diff --git a/config/emacs/init.el b/config/emacs/init.el
index de6aba2..6abe74f 100644
--- a/config/emacs/init.el
+++ b/config/emacs/init.el
@@ -65,6 +65,16 @@
"Returns whether or not this configuration is for the `development' flavour."
(eq init/system-flavour 'development))
+(defun init/project-remember ()
+ "Remember all projects under `~/Developer'"
+ (interactive)
+ (dolist (file (directory-files-and-attributes
+ "~/Developer" t directory-files-no-dot-files-regexp))
+ (let ((name (car file))
+ (is-dir (eq (cadr file) t)))
+ (when is-dir
+ (project-remember-projects-under name)))))
+
;;; -- Emacs Configuration --
(use-package emacs
@@ -75,6 +85,7 @@
:bind (("C-c ," . init/open-local-init)
("C-c C-," . init/open-init)
("C-c C-j" . init/open-journal)
+ ("C-c C-p" . init/project-remember)
("C-x k" . kill-current-buffer)
("M-/" . hippie-expand))
:init