persp-mode project.el integration
M-x package-install-file RET persp-mode-project-bridge.el RET
(with-eval-after-load "persp-mode-project-bridge-autoloads"
(add-hook 'persp-mode-project-bridge-mode-hook
(lambda ()
(if persp-mode-project-bridge-mode
(persp-mode-project-bridge-find-perspectives-for-all-buffers)
(persp-mode-project-bridge-kill-perspectives))))
(add-hook 'after-init-hook
(lambda ()
(persp-mode-project-bridge-mode 1))
t))
With use-package
:
(use-package persp-mode-project-bridge
:hook
(persp-mode-project-bridge-mode . (lambda ()
(if persp-mode-project-bridge-mode
(persp-mode-project-bridge-find-perspectives-for-all-buffers)
(persp-mode-project-bridge-kill-perspectives))))
(persp-mode . persp-mode-project-bridge-mode))