diff --git a/emacs/module/module-perspective.el b/emacs/module/module-perspective.el index fe7e0ee..25e4b49 100644 --- a/emacs/module/module-perspective.el +++ b/emacs/module/module-perspective.el @@ -45,19 +45,6 @@ (autoload 'projectile-project-root "projectile") (setq consult-project-root-function #'projectile-project-root) -;; load and save perspectives on load and exit -(add-hook 'kill-emacs-hook 'my-persp-save) -(add-hook 'after-init-hook 'my-persp-load) - -;; setup emacs perspective -(persp-switch "emacs") -(dired "~/.config/emacs") -(persp-add-buffer current-buffer) - -;; go back to main perspective -(persp-switch "main") - - ;; Call this function when Emacs starts (add-hook 'after-init-hook #'auto-create-work-project-perspectives) diff --git a/emacs/module/module-work-projects.el b/emacs/module/module-work-projects.el index 646dd81..a4d5fa8 100644 --- a/emacs/module/module-work-projects.el +++ b/emacs/module/module-work-projects.el @@ -14,7 +14,6 @@ (when (file-directory-p projects-dir) (create-perspectives-for-projects projects-dir)))) -;; Call this function when Emacs starts -(add-hook 'after-init-hook #'auto-create-work-project-perspectives) +(provide 'module-work-projects) ;;; module-work-projects.el ends here.