Rename variable with with more conventional enable

Also use `:if` use-package keyword.
This commit is contained in:
syl20bnr 2015-03-15 00:34:57 -04:00
parent c2afa9dc3e
commit 834c0aea4f
2 changed files with 4 additions and 4 deletions

View file

@ -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.")

View file

@ -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")))))