Remove evil-collection-helm hack (it's disabled)

This commit is contained in:
Henrik Lissner 2018-06-01 16:20:11 +02:00
parent dc2dad0af3
commit 553867bf61
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -25,19 +25,7 @@ variable for an explanation of the defaults (in comments). See
;; must be set before evil/evil-collection is loaded
(setq evil-want-integration nil
evil-collection-company-use-tng nil)
:config
;; Until evil-collection#101 is resolved
(defun +evil*fix-evil-collection-fix-helm-bs ()
"Prevents `with-helm-buffer' void-function errors when loading helm."
(when (with-current-buffer (helm-buffer-get) helm-echo-input-in-header-line)
(let ((ov (make-overlay (point-min) (point-max) nil nil t)))
(overlay-put ov 'window (selected-window))
(overlay-put ov 'face (let ((bg-color (face-background 'default nil)))
`(:background ,bg-color :foreground ,bg-color)))
(setq-local cursor-type nil))))
(advice-add #'evil-collection-helm-hide-minibuffer-maybe :override
#'+evil*fix-evil-collection-fix-helm-bs)
;; :config
(dolist (sym +evil-collection-disabled-list)
(setq evil-collection-mode-list
(funcall (if (symbolp sym) #'delq #'delete)