I have a function that calls global-company-mode
with argument 1
(enable) or -1
(disable).
A user can enable and disable however many times he wants. Do I have to set the configuration variables for company-mode every time I enable global-company-mode
? Or would emacs remember the settings done before the first call that enables global-company-mode
?
installation
. From my POV, they become available generally when the package is initialized (loaded into Emacs), although you can set options before that (in which case they are "available" but they are not of much use). But in any case, you don't need to reset them before every enablement of the mode.require
if I have the source code, or withinstall
withlist-packages
.require
ultimately does aload
and it does not care if the file it loads is a.el
file or a.elc
file. Package initialization (not installation) does the same thing: it's just that in most cases, package installation compiles the.el
files and produces.elc
files, so package initialization ends up loading.elc
files. That's all.