Rename variable with with more conventional enable
Also use `:if` use-package keyword.
This commit is contained in:
parent
c2afa9dc3e
commit
834c0aea4f
|
@ -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.")
|
||||
|
|
|
@ -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")))))
|
||||
|
|
Loading…
Reference in a new issue