completion/helm: cleanup and set some more sensible defaults

This commit is contained in:
Aria 2018-05-30 13:46:09 +10:00
parent 49f16f681c
commit ce4327e3a9

View file

@ -38,23 +38,21 @@
(def-package! helm (def-package! helm
:after helm-mode :after helm-mode
:init :init
(setq helm-quick-update t (setq
;; Speedier without fuzzy matching ;; Fuzzy matching is pretty handy!
helm-mode-fuzzy-match nil helm-mode-fuzzy-match t
helm-buffers-fuzzy-matching nil helm-buffers-fuzzy-matching t
helm-apropos-fuzzy-match nil helm-apropos-fuzzy-match t
helm-M-x-fuzzy-match nil helm-M-x-fuzzy-match t
helm-recentf-fuzzy-match nil helm-recentf-fuzzy-match t
helm-projectile-fuzzy-match nil helm-projectile-fuzzy-match t
;; Display extraineous helm UI elements ;; Display extraineous helm UI elements
helm-display-header-line nil helm-display-header-line nil
helm-ff-auto-update-initial-value nil helm-ff-auto-update-initial-value nil
helm-find-files-doc-header nil helm-find-files-doc-header nil
;; Don't override evil-ex's completion ;; Don't override evil-ex's completion
helm-mode-handle-completion-in-region nil helm-mode-handle-completion-in-region nil
helm-candidate-number-limit 50 helm-candidate-number-limit 50)
;; Don't wrap item cycling
helm-move-to-line-cycle-in-source t)
:config :config
(setq projectile-completion-system 'helm) (setq projectile-completion-system 'helm)
@ -86,10 +84,7 @@
(let ((bg-color (face-background 'default nil))) (let ((bg-color (face-background 'default nil)))
`(:background ,bg-color :foreground ,bg-color))) `(:background ,bg-color :foreground ,bg-color)))
(setq-local cursor-type nil)))) (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 (def-package! helm-locate
:defer t :defer t