all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* I need packages and custom with --script
@ 2022-09-28  6:57 Jean Louis
  2022-09-28 11:06 ` Felix Dietrich
  0 siblings, 1 reply; 3+ messages in thread
From: Jean Louis @ 2022-09-28  6:57 UTC (permalink / raw)
  To: Help GNU Emacs

I have on server Emacs 27 running, and I notice that I cannot load
packages with `require' even if installed, if I use --script and I see
that I cannot load packages and cannot get ~/.emacs.d/init.el
automatically loaded so that I can get customized variables from
inside.

I need help on that. Do I need to load 'package like this? I have
tried, but it still does not recognize other packages, so I can't load
them with (require 'my-package)

And what do I need to load so that ~/.emacs.d/init.el is read and
custom variables read while running under --script ?

#!/home/data1/protected/bin/emacs --script
(require 'package)
(require 'custom)


Jean

Take action in Free Software Foundation campaigns:
https://www.fsf.org/campaigns

In support of Richard M. Stallman
https://stallmansupport.org/



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-09-29  3:05 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-09-28  6:57 I need packages and custom with --script Jean Louis
2022-09-28 11:06 ` Felix Dietrich
2022-09-29  3:05   ` Stefan Monnier via Users list for the GNU Emacs text editor

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.