This commit is contained in:
Levi 2024-09-20 09:31:04 +02:00
parent d00aa34d77
commit 2b5e99f4e1
2 changed files with 1 additions and 6 deletions

View File

@ -45,11 +45,7 @@
(autoload 'projectile-project-root "projectile") (autoload 'projectile-project-root "projectile")
(setq consult-project-root-function #'projectile-project-root) (setq consult-project-root-function #'projectile-project-root)
;; Call this function when Emacs starts (persp-switch "main")
(add-hook 'after-init-hook #'auto-create-work-project-perspectives)
(provide 'module-perspective) (provide 'module-perspective)
;;; module-projectile.el ends here. ;;; module-projectile.el ends here.

View File

@ -14,6 +14,5 @@
(when (file-directory-p projects-dir) (when (file-directory-p projects-dir)
(create-perspectives-for-projects projects-dir)))) (create-perspectives-for-projects projects-dir))))
(provide 'module-work-projects) (provide 'module-work-projects)
;;; module-work-projects.el ends here. ;;; module-work-projects.el ends here.