plexus / chemacs2

Emacs version switcher, improved
779 stars 47 forks source link

Possible to use with "--batch" emacs option? #38

Closed McPhale closed 2 years ago

McPhale commented 2 years ago

I'm attempting to follow the advice here: https://emacs.stackexchange.com/questions/41786/update-spacemacs-packages-from-the-command-line.

However, attempting to dispatch the command against my chemacs spacemacs profile results in the error "Unknown option '--with-profile".

Is chemacs incompatible with the emacs --batch command line argument?

plexus commented 2 years ago

Seems to work fine here:

➜ emacs --batch -l ~/.emacs.d/init.el --with-profile default --eval='(message "foo")'
Loading /home/arne/Gaiwan/corgi-init/bootstrap.el (source)...
[nREPL] Starting server via bb --nrepl-server 0
Followed link to /home/arne/Gaiwan/corgi-init/straight/repos/corgi-packages/corkey/corgi-keys.el
Followed link to /home/arne/Gaiwan/corgi-init/straight/repos/corgi-packages/corkey/corgi-signals.el
Warning (server): Unable to start the Emacs server.
There is an existing Emacs server, named "server".
To start the server in this Emacs process, stop the existing
server or call ‘M-x server-force-delete’ to forcibly disconnect it.
Loading /home/arne/Gaiwan/corgi-init/local.el (source)...
Package cl is deprecated
Loading /home/arne/Gaiwan/corgi-init/custom.el (source)...
foo

Can you provide more information?

McPhale commented 2 years ago

I had the arguments in the wrong order >.<

Everything works great, thanks so much!