refactor(helm): use helm-posframe

The old, in-house implementation no longer works (and reportedly causes
crashes).

Ref: #6676
Co-authored-by: johanwiden <johanwiden@users.noreply.github.com>
This commit is contained in:
Henrik Lissner 2023-02-23 22:37:36 -05:00
parent fcf587fbe8
commit 928902213f
No known key found for this signature in database
GPG key ID: B60957CA074D39A3
3 changed files with 16 additions and 64 deletions

View file

@ -66,12 +66,6 @@ Can be negative.")
(setq helm-default-prompt-display-function #'+helm--set-prompt-display))
:init
(when (modulep! +childframe)
;; If this is set to 'iconify-top-level then Emacs will be minimized upon
;; helm completion.
(setq iconify-child-frame 'make-invisible)
(setq helm-display-function #'+helm-posframe-display-fn))
(let ((fuzzy (modulep! +fuzzy)))
(setq helm-apropos-fuzzy-match fuzzy
helm-bookmark-show-location fuzzy
@ -106,6 +100,19 @@ Can be negative.")
(dolist (fn '(helm-describe-variable helm-describe-function))
(advice-add fn :around #'doom-use-helpful-a)))
(use-package! helm-posframe
:when (modulep! +childframe)
:hook (helm-mode . helm-posframe-enable)
:config
(setq helm-posframe-poshandler #'posframe-poshandler-frame-center
helm-posframe-width 0.65
helm-posframe-height 0.35
helm-posframe-min-width 80
helm-posframe-min-height 16
helm-posframe-border-width 8))
(use-package! helm-flx
:when (modulep! +fuzzy)
:hook (helm-mode . helm-flx-mode)