From ce4327e3a9bb56387f85c2cf7636ff8510b5505a Mon Sep 17 00:00:00 2001 From: Aria Date: Wed, 30 May 2018 13:46:09 +1000 Subject: [PATCH] completion/helm: cleanup and set some more sensible defaults --- modules/completion/helm/config.el | 37 +++++++++++++------------------ 1 file changed, 16 insertions(+), 21 deletions(-) diff --git a/modules/completion/helm/config.el b/modules/completion/helm/config.el index 7caa3e8a4..9dac9accf 100644 --- a/modules/completion/helm/config.el +++ b/modules/completion/helm/config.el @@ -38,23 +38,21 @@ (def-package! helm :after helm-mode :init - (setq helm-quick-update t - ;; Speedier without fuzzy matching - helm-mode-fuzzy-match nil - helm-buffers-fuzzy-matching nil - helm-apropos-fuzzy-match nil - helm-M-x-fuzzy-match nil - helm-recentf-fuzzy-match nil - helm-projectile-fuzzy-match nil - ;; Display extraineous helm UI elements - helm-display-header-line nil - helm-ff-auto-update-initial-value nil - helm-find-files-doc-header nil - ;; Don't override evil-ex's completion - helm-mode-handle-completion-in-region nil - helm-candidate-number-limit 50 - ;; Don't wrap item cycling - helm-move-to-line-cycle-in-source t) + (setq + ;; Fuzzy matching is pretty handy! + helm-mode-fuzzy-match t + helm-buffers-fuzzy-matching t + helm-apropos-fuzzy-match t + helm-M-x-fuzzy-match t + helm-recentf-fuzzy-match t + helm-projectile-fuzzy-match t + ;; Display extraineous helm UI elements + helm-display-header-line nil + helm-ff-auto-update-initial-value nil + helm-find-files-doc-header nil + ;; Don't override evil-ex's completion + helm-mode-handle-completion-in-region nil + helm-candidate-number-limit 50) :config (setq projectile-completion-system 'helm) @@ -86,10 +84,7 @@ (let ((bg-color (face-background 'default nil))) `(:background ,bg-color :foreground ,bg-color))) (setq-local cursor-type nil)))) - (add-hook 'helm-minibuffer-set-up-hook #'+helm*hide-minibuffer-maybe) - - ) - + (add-hook 'helm-minibuffer-set-up-hook #'+helm*hide-minibuffer-maybe)) (def-package! helm-locate :defer t