Skip to content

fix the use-package config - #40

Open
mmahmoudian wants to merge 1 commit into
karthink:masterfrom
mmahmoudian:fix-readme-usage
Open

fix the use-package config#40
mmahmoudian wants to merge 1 commit into
karthink:masterfrom
mmahmoudian:fix-readme-usage

Conversation

@mmahmoudian

@mmahmoudian mmahmoudian commented Nov 13, 2022

Copy link
Copy Markdown

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.

@karthink

Copy link
Copy Markdown
Owner

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

@mmahmoudian

mmahmoudian commented Jun 28, 2023

Copy link
Copy Markdown
Author

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

@karthink
karthink force-pushed the master branch 2 times, most recently from 178950f to 51b536b Compare September 8, 2023 21:33
@karthink
karthink force-pushed the master branch 3 times, most recently from 28f1882 to c6b78fd Compare March 25, 2024 00:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants