unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Jean Louis <bugs@gnu.support>
To: Help GNU Emacs <help-gnu-emacs@gnu.org>
Subject: I need packages and custom with --script
Date: Wed, 28 Sep 2022 09:57:06 +0300	[thread overview]
Message-ID: <courier.000000006333F07C.000015E3@stw1.rcdrun.com> (raw)

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/



             reply	other threads:[~2022-09-28  6:57 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-28  6:57 Jean Louis [this message]
2022-09-28 11:06 ` I need packages and custom with --script Felix Dietrich
2022-09-29  3:05   ` Stefan Monnier via Users list for the GNU Emacs text editor

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=courier.000000006333F07C.000015E3@stw1.rcdrun.com \
    --to=bugs@gnu.support \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).