From b0f77612e318b236822de940ecea7c8a43226f41 Mon Sep 17 00:00:00 2001 From: Bet4 <16643669+bet4it@users.noreply.github.com> Date: Sat, 3 Mar 2018 19:29:42 +0800 Subject: [PATCH] Call helm-mode when helm is initialized Fixes #9826 --- layers/+completion/helm/packages.el | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/layers/+completion/helm/packages.el b/layers/+completion/helm/packages.el index bc0bc01a6..b65643d81 100644 --- a/layers/+completion/helm/packages.el +++ b/layers/+completion/helm/packages.el @@ -59,9 +59,7 @@ (defun helm/init-helm () (use-package helm - :defer 1 - :commands (spacemacs/helm-find-files - helm-current-directory) + :defer t :init (progn (add-hook 'helm-cleanup-hook #'spacemacs//helm-cleanup) @@ -121,10 +119,11 @@ (lambda () (unless (configuration-layer/package-used-p 'smex) (spacemacs/set-leader-keys - dotspacemacs-emacs-command-key 'helm-M-x))))) + dotspacemacs-emacs-command-key 'helm-M-x)))) + (helm-mode)) :config (progn - (helm-mode) + (spacemacs|hide-lighter helm-mode) (advice-add 'helm-grep-save-results-1 :after 'spacemacs//gne-init-helm-grep) ;; helm-locate uses es (from everything on windows which doesnt like fuzzy) (helm-locate-set-command) @@ -140,8 +139,6 @@ (define-key helm-bookmark-map (kbd "C-/") 'helm-bookmark-help)) (with-eval-after-load 'helm-bookmark (simpler-helm-bookmark-keybindings)) - (with-eval-after-load 'helm-mode ; required - (spacemacs|hide-lighter helm-mode)) (define-key helm-buffer-map (kbd "RET") 'spacemacs/helm-find-buffers-windows) (define-key helm-generic-files-map (kbd "RET") 'spacemacs/helm-find-files-windows) (define-key helm-find-files-map (kbd "RET") 'spacemacs/helm-find-files-windows))))