[helpful] follow help buffer convention for displaying helpful popup

Reference: b7fd2fab6e/layers/+spacemacs/spacemacs-visual/packages.el (L93)
This commit is contained in:
Muneeb Shaikh 2020-03-14 17:28:10 +05:30 committed by Maximilian Wolff
parent b7fd2fab6e
commit 1d797ffa4a
1 changed files with 8 additions and 1 deletions

View File

@ -10,7 +10,10 @@
;;; License: GPLv3
(defconst helpful-packages
'(helpful))
'(
helpful
popwin
))
(defun helpful/init-helpful ()
(use-package helpful
@ -28,3 +31,7 @@
(evil-set-initial-state 'helpful-mode 'normal)
(evil-define-key 'normal helpful-mode-map (kbd "o") 'link-hint-open-link)
(evil-define-key 'normal helpful-mode-map (kbd "q") 'quit-window)))
(defun helpful/post-init-popwin ()
(push '(helpful-mode :dedicated t :position bottom :stick t :noselect t :height 0.4)
popwin:special-display-config))