From d00aa34d776ac8785ca58044b6bd608ca3d3d3b8 Mon Sep 17 00:00:00 2001 From: Levi Date: Fri, 20 Sep 2024 09:18:18 +0200 Subject: [PATCH] bugfixes, removed auto load crap --- emacs/module/module-perspective.el | 13 ------------- emacs/module/module-work-projects.el | 3 +-- 2 files changed, 1 insertion(+), 15 deletions(-) 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.