Skip to content

Commit

Permalink
refactor: update popper-mode
Browse files Browse the repository at this point in the history
  • Loading branch information
seagle0128 committed Oct 13, 2023
1 parent dbfb2cd commit 186f5e2
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions lisp/init-window.el
Original file line number Diff line number Diff line change
Expand Up @@ -145,15 +145,15 @@
;; Enforce rules for popups
(use-package popper
:diminish (popper-mode popper-echo-mode)
:functions popper-echo-mode
:custom
(popper-group-function #'popper-group-by-directory)
(popper-echo-dispatch-actions t)
:bind (:map popper-mode-map
("C-h z" . popper-toggle)
("C-<tab>" . popper-cycle)
("C-M-<tab>" . popper-toggle-type))
:hook (emacs-startup . popper-mode)
("C-h z" . popper-toggle)
("C-<tab>" . popper-cycle)
("C-M-<tab>" . popper-toggle-type))
:hook ((emacs-startup . popper-mode)
(popper-mode . popper-echo-mode))
:init
(setq popper-reference-buffers
'("\\*Messages\\*"
Expand Down Expand Up @@ -221,10 +221,8 @@
(bound-and-true-p doom-modeline-mode))
(format " %s "
(nerd-icons-octicon "nf-oct-pin" :face face))
(propertize " POP" 'face face))))))
(propertize " POP " 'face face))))))
:config
(popper-echo-mode 1)

(with-no-warnings
(defun my-popper-fit-window-height (win)
"Determine the height of popup window WIN by fitting it to the buffer's content."
Expand Down

0 comments on commit 186f5e2

Please sign in to comment.