From a74f4d1f60f3383a5188a2997a50c87506ec9099 Mon Sep 17 00:00:00 2001 From: Ta Quang Trung Date: Tue, 23 May 2023 21:01:39 +0800 Subject: [PATCH 1/2] helm: hide evil cursor in minibuffer --- modes/helm/evil-collection-helm.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modes/helm/evil-collection-helm.el b/modes/helm/evil-collection-helm.el index a9cf437..339f903 100644 --- a/modes/helm/evil-collection-helm.el +++ b/modes/helm/evil-collection-helm.el @@ -74,7 +74,10 @@ (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))))) + (setq-local cursor-type nil + evil-emacs-state-cursor '(nil +evil-emacs-cursor-fn) + evil-normal-state-cursor '(nil +evil-default-cursor-fn) + evil-insert-state-cursor '(nil +evil-default-cursor-fn)))))) (defun evil-collection-helm--set-prompt-display (pos) (let (beg state region-active m) From ec26c3489cba6eb576e7fa3c634a62d8c741fe22 Mon Sep 17 00:00:00 2001 From: Ta Quang Trung Date: Fri, 26 May 2023 01:06:53 +0800 Subject: [PATCH 2/2] remove Doom function when configure Helm cursor in minibuffer --- modes/helm/evil-collection-helm.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modes/helm/evil-collection-helm.el b/modes/helm/evil-collection-helm.el index 339f903..6498aab 100644 --- a/modes/helm/evil-collection-helm.el +++ b/modes/helm/evil-collection-helm.el @@ -75,9 +75,9 @@ (overlay-put ov 'face (let ((bg-color (face-background 'default nil))) `(:background ,bg-color :foreground ,bg-color))) (setq-local cursor-type nil - evil-emacs-state-cursor '(nil +evil-emacs-cursor-fn) - evil-normal-state-cursor '(nil +evil-default-cursor-fn) - evil-insert-state-cursor '(nil +evil-default-cursor-fn)))))) + evil-emacs-state-cursor nil + evil-normal-state-cursor nil + evil-insert-state-cursor nil))))) (defun evil-collection-helm--set-prompt-display (pos) (let (beg state region-active m)