]> git.eshelyaron.com Git - dotfiles.git/commitdiff
Add Project management section
authorEshel Yaron <eshel@dazz.io>
Fri, 17 Jun 2022 20:15:34 +0000 (23:15 +0300)
committerEshel Yaron <eshel@dazz.io>
Fri, 17 Jun 2022 20:15:34 +0000 (23:15 +0300)
.emacs.d/esy.org

index fb6a3eef9b787625cba3036a1e9023907477bdf5..12eb862d12c7299beb201316baad66b3e72f86be 100644 (file)
@@ -1408,7 +1408,25 @@ without asking each time.
   (setq vc-follow-symlinks t)
 #+end_src
 
-* Project switch commands
+* Project management
+:PROPERTIES:
+:CUSTOM_ID: project-management
+:END:
+** Populate project list from my projects directory
+:PROPERTIES:
+:CUSTOM_ID: remember-projects-under-directory
+:END:
+
+#+begin_src emacs-lisp
+  (defconst esy/projects-directory "~/checkouts"
+    "Path of the projects directory.")
+
+  (add-hook 'kill-emacs-hook
+            (lambda () (project-remember-projects-under
+                        esy/projects-directory)))
+#+end_src
+
+** Project switch commands
 :PROPERTIES:
 :CUSTOM_ID: project-switch-commands
 :END: