Merge pull request #627 from ar1a/helm-posframe
Add posframes to helm in emacs 26+
This commit is contained in:
commit
5e9030500c
2 changed files with 24 additions and 0 deletions
|
@ -140,6 +140,28 @@
|
||||||
:config (setq wgrep-auto-save-buffer t))
|
:config (setq wgrep-auto-save-buffer t))
|
||||||
|
|
||||||
|
|
||||||
|
(def-package! posframe
|
||||||
|
:when (and EMACS26+ (featurep! +childframe))
|
||||||
|
:after helm
|
||||||
|
:config
|
||||||
|
(defvar +helm--posframe-buffer nil)
|
||||||
|
|
||||||
|
(defun +helm-posframe-display (buffer &optional _resume)
|
||||||
|
(posframe-show
|
||||||
|
(setq +helm--posframe-buffer buffer)
|
||||||
|
:poshandler #'posframe-poshandler-frame-bottom-left-corner
|
||||||
|
:left-fringe 10
|
||||||
|
:width (frame-width)
|
||||||
|
:height 16 ;; ivy/+childframe uses 16
|
||||||
|
:respect-header-line t))
|
||||||
|
|
||||||
|
(defun +helm|posframe-cleanup ()
|
||||||
|
(posframe-hide +helm--posframe-buffer))
|
||||||
|
|
||||||
|
(add-hook 'helm-cleanup-hook #'+helm|posframe-cleanup)
|
||||||
|
(setq helm-display-function #'+helm-posframe-display))
|
||||||
|
|
||||||
|
|
||||||
;;
|
;;
|
||||||
;; Evil integration
|
;; Evil integration
|
||||||
;;
|
;;
|
||||||
|
|
|
@ -12,3 +12,5 @@
|
||||||
(package! wgrep)
|
(package! wgrep)
|
||||||
(when (featurep! +fuzzy)
|
(when (featurep! +fuzzy)
|
||||||
(package! helm-flx))
|
(package! helm-flx))
|
||||||
|
(when (and EMACS26+ (featurep! +childframe))
|
||||||
|
(package! posframe))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue