15 lines
1.6 KiB
EmacsLisp
15 lines
1.6 KiB
EmacsLisp
#s(ellama-session "Emacs package installation (Open AI)" #s(llm-openai "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" "gpt-4" "text-embedding-3-large") "/home/amr/org/ellama-sessions/Emacs package installation (Open AI).org" #s(llm-chat-prompt nil nil (#s(llm-chat-prompt-interaction system "" nil) #s(llm-chat-prompt-interaction user "How to stop emacs asking if it should install a package? The package does not appear anywhere in the config files" nil) #s(llm-chat-prompt-interaction assistant "Your Emacs is getting a list of packages to install from somewhere, so if it's not in any of your config files, you may have a stray file or code block containing this. Emacs settings can be loaded from different files(like .emacs, .emacs.el, .emacs.d/init.el) and if you have multiple configuration files, Emacs could be loading preferences from a different configuration.
|
|
|
|
Check if you have multiple init files lying around your system or if there is an updated package list that Emacs is pulling down somewhere else.
|
|
|
|
Also check to see if there is some package's pre/post-install/update hooks have this package to be installed.
|
|
|
|
But the direct answer of how to stop emacs asking is to use 'yes-or-no-p' function.
|
|
|
|
(setq use-package-always-ensure t)
|
|
|
|
Above statement enables automatic installation of packages without prompt. It ensures that packages are installed automatically if not present already.
|
|
|
|
However, doing so would install packages without asking you. Make sure you understand the implications.
|
|
|
|
Also, make sure you backup your Emacs configuration files regularly, especially before making any major changes or updates." nil)) nil nil nil) nil) |