popper
popper copied to clipboard
fix the use-package config
The use-package syntax has a mistake, enabling the popper modes in :init section would result in:
Error (use-package): popper/:init: Symbol’s function definition is void: popper-mode
So the :config should be used.
Searching lead me to a comment which clarified the issue. I confirmed it with the use-package manual.
popper-mode is autoloaded, so this is not an error if Popper is installed correctly. How did you install Popper?
I installed using the use-package as I explained in my original post. This is my config for popper:
(use-package popper
:ensure t
:bind (("C-§" . popper-toggle-latest)
("M-§" . popper-cycle)
("C-M-§" . popper-toggle-type))
:init
(setq popper-reference-buffers
'("\\*Messages\\*"
"Output\\*$"
"\\*Async Shell Command\\*"
help-mode
compilation-mode
"^\\*vterm.*\\*$" vterm-mode))
:config
(popper-mode +1)
(popper-echo-mode +1))