From c4afa6ee03cb09131e33763029e56a1fbc0cf811 Mon Sep 17 00:00:00 2001 From: Nicholas Rodrigues Lordello Date: Tue, 29 Jul 2025 16:54:15 +0200 Subject: 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`. --- config/emacs/init.el | 11 +++++++++++ 1 file changed, 11 insertions(+) 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 -- cgit v1.2.3