popper icon indicating copy to clipboard operation
popper copied to clipboard

fix the use-package config

Open mmahmoudian opened this issue 3 years ago • 2 comments

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.

mmahmoudian avatar Nov 13 '22 18:11 mmahmoudian

popper-mode is autoloaded, so this is not an error if Popper is installed correctly. How did you install Popper?

karthink avatar Jun 18 '23 19:06 karthink

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))

mmahmoudian avatar Jun 28 '23 11:06 mmahmoudian