0

I have seen a new cool Emacs package called gptel. One of the ways to install it is using the use-package approach:

(use-package! gptel
 :config
 (setq! gptel-api-key "your key"))

However, I noticed that they use an exclamation mark ! after (use-package. I can't find an explanation for the exclamation mark on the use-package documentation.

My config file heavily uses use-package and I have never seen such notation.

Is there a reason for the exclamation mark?

1 Answer 1

0

It was actually a misinterpretation on my side. use-package! using the exclamation mark is an adaptation for doom-emacs. More here.

On gptel documentation, the README explicitly mentioned Doom. I was just reading fast and missed it.

On vanilla Emacs just do:

(use-package gptel
 :config
 (setq gptel-api-key "your-open-ai-key"))
2
  • 1
    FYI, you can accept your own answer.
    – Drew
    Jul 10, 2023 at 3:37
  • @Drew, yeah. But, it takes awhile. Only tomorrow it will be possible. Jul 10, 2023 at 14:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.