Fix smex overwritten by helm configuration

This commit is contained in:
syl20bnr 2015-03-21 13:18:13 -04:00
parent 30aee9fd64
commit 7c29fdee0c

View file

@ -1342,7 +1342,8 @@ which require an initialization must be listed explicitly in the list.")
;; to overwrite any key binding
(add-hook 'after-init-hook
(lambda ()
(evil-leader/set-key dotspacemacs-command-key 'helm-M-x)))
(unless (configuration-layer/package-declaredp 'smex)
(evil-leader/set-key dotspacemacs-command-key 'helm-M-x))))
(defun spacemacs//helm-before-initialize ()
"Stuff to do before helm initializes."