fix helm layer broken with smex package

This commit is contained in:
CeleritasCelery 2018-04-12 14:06:44 -07:00 committed by Codruț Constantin Gușoi
parent 7638d4cc40
commit 2609538855
1 changed files with 2 additions and 2 deletions

View File

@ -69,7 +69,7 @@
(unless (configuration-layer/package-used-p 'ibuffer)
(evil-ex-define-cmd "buffers" 'helm-buffers-list))
;; use helm by default for M-x, C-x C-f, and C-x b
(unless (configuration-layer/package-used-p 'smex)
(unless (configuration-layer/layer-usedp 'smex)
(global-set-key (kbd "M-x") 'helm-M-x))
(global-set-key (kbd "C-x C-f") 'spacemacs/helm-find-files)
(global-set-key (kbd "C-x b") 'helm-buffers-list)
@ -118,7 +118,7 @@
;; to overwrite any key binding
(add-hook 'emacs-startup-hook
(lambda ()
(unless (configuration-layer/package-used-p 'smex)
(unless (configuration-layer/layer-usedp 'smex)
(spacemacs/set-leader-keys
dotspacemacs-emacs-command-key 'helm-M-x))))
(helm-mode))