diff --git a/contrib/perspectives/config.el b/contrib/perspectives/config.el index ac2e127c6..e72a1561a 100644 --- a/contrib/perspectives/config.el +++ b/contrib/perspectives/config.el @@ -5,5 +5,5 @@ ;;; License: GPLv3 ;; Variables -(defvar perspective-use-persp-projectile nil +(defvar perspective-enable-persp-projectile nil "If non nil the helm-projectile-swtich-project command will create a new perspective for each new project.") diff --git a/contrib/perspectives/packages.el b/contrib/perspectives/packages.el index d30c10068..8dee5ebd4 100644 --- a/contrib/perspectives/packages.el +++ b/contrib/perspectives/packages.el @@ -95,8 +95,9 @@ which require an initialization must be listed explicitly in the list.") (defun perspectives/init-persp-projectile () (use-package persp-projectile + :if perspective-enable-persp-projectile :config - (when perspective-use-persp-projectile + (progn (projectile-persp-bridge helm-projectile-switch-project) (evil-leader/set-key @@ -109,5 +110,4 @@ which require an initialization must be listed explicitly in the list.") (find-file "~/.spacemacs") (helm-projectile-switch-project) (persp-add-buffer "*spacemacs*") - (persp-kill "@spacemacs"))) - )) + (persp-kill "@spacemacs")))))