about summary refs log tree commit diff stats
path: root/.emacs.d
diff options
context:
space:
mode:
authorDavid Morgan <djm_uk@protonmail.com>2021-09-07 19:27:19 +0100
committerDavid Morgan <djm_uk@protonmail.com>2021-09-07 19:27:19 +0100
commitfd95242ad0c0685597e97395985d3a42028531b3 (patch)
treeafdb49a1610a05b7d9e31733bdb94675c80c907e /.emacs.d
parentfbec4d1af0d236e024b89d5af5925fa97b6f7972 (diff)
downloaddotfiles-fd95242ad0c0685597e97395985d3a42028531b3.tar.gz
Prevent persp-mode from being restarted
Diffstat (limited to '.emacs.d')
-rw-r--r--.emacs.d/lisp/init-project.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/.emacs.d/lisp/init-project.el b/.emacs.d/lisp/init-project.el
index 79d291d..eda758e 100644
--- a/.emacs.d/lisp/init-project.el
+++ b/.emacs.d/lisp/init-project.el
@@ -61,7 +61,8 @@
   ("C-x f" . project-recentf))
 
 (use-package perspective
-  :init (persp-mode)
+  ;; Don't restart persp-mode when re-evaluating, as it clears the current persp list
+  :init (or persp-mode (persp-mode))
   :config
   (defun switch-project (proj)
     "Switch to project or already open project perspective."