Fix void-function spacemacs//restore-previous-display-config error

Move usage of spacemacs//restore-previous-display-config from helm layer
to spacemacs-completion layer. (It's already defined there)
This commit is contained in:
bmag 2016-07-18 14:37:40 +03:00 committed by Eivind Fonn
parent 8999fba7de
commit 2f6bf80275
2 changed files with 3 additions and 4 deletions

View file

@ -57,10 +57,7 @@
:commands (spacemacs/helm-find-files)
:init
(progn
;; Restore popwin-mode after a Helm session finishes.
(spacemacs/add-to-hook 'helm-cleanup-hook
'(spacemacs//restore-previous-display-config
spacemacs//helm-cleanup))
(add-hook 'helm-cleanup-hook #'spacemacs//helm-cleanup)
;; key bindings
;; Use helm to provide :ls, unless ibuffer is used
(unless (configuration-layer/package-usedp 'ibuffer)

View file

@ -41,6 +41,8 @@
(spacemacs/add-to-hook 'helm-after-initialize-hook
'(spacemacs//helm-prepare-display
spacemacs//hide-cursor-in-helm-buffer))
;; Restore popwin-mode after a Helm session finishes.
(add-hook 'helm-cleanup-hook #'spacemacs//restore-previous-display-config)
(add-hook 'helm-find-files-before-init-hook
'spacemacs//set-dotted-directory)
(add-hook 'spacemacs-editing-style-hook 'spacemacs//helm-hjkl-navigation)