Re: Lightweight Emacs for container?

2024-05-06 Thread tomas
On Mon, May 06, 2024 at 04:19:32PM -0400, Stefan Monnier wrote:
> > Is there some package, or a simple workaround, that will allow me to use
> > a basic Emacs without all the cruft?
> 
> I think the usual answers look like:
> 
> - Use Zile (or some other small Emacs-inspired editor).
> - Use Tramp (i.e. run Emacs outside the container and access the
>   container's files as a kind of remote host).

Tramp is the way to go, for a bunch of other reasons. You carry around
your set of customizations. You have less instances to keep up to date
and to care-and-feed.

Cheers
-- 
t


signature.asc
Description: PGP signature


Re: Lightweight Emacs for container?

2024-05-06 Thread Jeffrey Walton
On Mon, May 6, 2024 at 6:45 PM Dr. Jennifer Nussbaum 
wrote:

> I usually use Emacs on full-blown Debian distributions, so I don't pay
> much attention to how large it is. But I'm now starting to
> play around with lightweight LXC containers, obviously headless, and would
> like to keep using Emacs in these, but just for basic
> text editing and so forth, I don't need a whole IDE environment. But to my
> surprise, even emacs-nox is a gigantic installation,
> that even wants to pull in MySQL, for heaven's sake.
>
> Is there some package, or a simple workaround, that will allow me to use a
> basic Emacs without all the cruft?
>

To expand on what Stefan said, see <
https://www.emacswiki.org/emacs/EmacsImplementations>.

And you can build it from sources, and really leave out the stuff you don't
want: .

Jeff


Re: Lightweight Emacs for container?

2024-05-06 Thread Michael Kjörling
On 6 May 2024 16:19 -0400, from monn...@iro.umontreal.ca (Stefan Monnier):
>> Is there some package, or a simple workaround, that will allow me to use
>> a basic Emacs without all the cruft?
> 
> I think the usual answers look like:
> 
> - Use Zile (or some other small Emacs-inspired editor).

mg and jove might be other alternatives; all of these appear to have
minimal dependencies.

On a fairly small Bookworm installation (standard and ssh-server tasks
installed, and otherwise out-of-the-box):

# apt-get -s install zile
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  libgee-0.8-2
The following NEW packages will be installed:
  libgee-0.8-2 zile
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Inst libgee-0.8-2 (0.20.6-1 Debian:12.5/stable [amd64])
Inst zile (2.6.2-2+b1 Debian:12.5/stable [amd64])
Conf libgee-0.8-2 (0.20.6-1 Debian:12.5/stable [amd64])
Conf zile (2.6.2-2+b1 Debian:12.5/stable [amd64])
# apt-get -s install mg
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following NEW packages will be installed:
  mg
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Inst mg (20221112-1 Debian:12.5/stable [amd64])
Conf mg (20221112-1 Debian:12.5/stable [amd64])
# apt-get -s install jove
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Suggested packages:
  aspell ctags | emacs-bin-common
The following NEW packages will be installed:
  jove
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Inst jove (4.17.5.1-2 Debian:12.5/stable [amd64])
Conf jove (4.17.5.1-2 Debian:12.5/stable [amd64])
#

You could also try with --no-install-recommends --no-install-suggests
to apt-get install; but there's no denying that present-day Emacs is
fairly heavy-weight.

-- 
Michael Kjörling  https://michael.kjorling.se
“Remember when, on the Internet, nobody cared that you were a dog?”



Re: Lightweight Emacs for container?

2024-05-06 Thread David Wright
On Mon 06 May 2024 at 19:37:39 (+), Dr. Jennifer Nussbaum wrote:
> I usually use Emacs on full-blown Debian distributions, so I don't pay much 
> attention to how large it is. But I'm now starting to
> play around with lightweight LXC containers, obviously headless, and would 
> like to keep using Emacs in these, but just for basic 
> text editing and so forth, I don't need a whole IDE environment. But to my 
> surprise, even emacs-nox is a gigantic installation, 
> that even wants to pull in MySQL, for heaven's sake.
> 
> Is there some package, or a simple workaround, that will allow me to use a 
> basic Emacs without all the cruft?

Are you allowing APT to install Recommends and/or Suggests?

If you haven't yet installed emacs-nox, it might be interesting
to see the list of packages you get listed if you:

 $ apt-get -s --no-install-recommends install emacs-nox

as a /user/.

Or OTOH, if you have installed emacs-nox:

 $ apt-get -s purge 

as a /user/, where  is the names of the mysql packages
you're complaining about.

The only mysql package I have (on bullseye, I'm afraid)
is mysql-common (which is very small), and that shows:

$  apt-get -s purge mysql-common
NOTE: This is only a simulation!
  apt-get needs root privileges for real execution.
  Keep also in mind that locking is deactivated,
  so don't depend on the relevance to the real current situation!
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
  gsasl-common guile-2.2-libs libgsasl7 libntlm0 mailutils-common
Use 'apt autoremove' to remove them.
The following packages will be REMOVED:
  libmailutils7* libmariadb3* libreoffice-sdbc-mysql* mailutils* 
mariadb-common* mysql-common*
0 upgraded, 0 newly installed, 6 to remove and 0 not upgraded.
Purg mailutils [1:3.10-3+b1]
Purg libmailutils7 [1:3.10-3+b1]
Purg libreoffice-sdbc-mysql [1:7.0.4-4+deb11u8]
Purg libmariadb3 [1:10.5.23-0+deb11u1]
Purg mariadb-common [1:10.5.23-0+deb11u1]
Purg mysql-common [5.8+1.0.7]

(I have emacs-gtk installed, rather than -nox.)

Cheers,
David.



Re: Lightweight Emacs for container?

2024-05-06 Thread Stefan Monnier
> Is there some package, or a simple workaround, that will allow me to use
> a basic Emacs without all the cruft?

I think the usual answers look like:

- Use Zile (or some other small Emacs-inspired editor).
- Use Tramp (i.e. run Emacs outside the container and access the
  container's files as a kind of remote host).


Stefan



Lightweight Emacs for container?

2024-05-06 Thread Dr. Jennifer Nussbaum
I usually use Emacs on full-blown Debian distributions, so I don't pay much 
attention to how large it is. But I'm now starting to
play around with lightweight LXC containers, obviously headless, and would like 
to keep using Emacs in these, but just for basic 
text editing and so forth, I don't need a whole IDE environment. But to my 
surprise, even emacs-nox is a gigantic installation, 
that even wants to pull in MySQL, for heaven's sake.

Is there some package, or a simple workaround, that will allow me to use a 
basic Emacs without all the cruft?