Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #269212 > unrolled thread

Lightweight Emacs for container?

Started by"Dr. Jennifer Nussbaum" <bg271828@yahoo.com>
First post2024-05-06 21:40 +0200
Last post2024-05-07 06:10 +0200
Articles 6 — 6 participants

Back to article view | Back to linux.debian.user

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Lightweight Emacs for container? "Dr. Jennifer Nussbaum" <bg271828@yahoo.com> - 2024-05-06 21:40 +0200
    Re: Lightweight Emacs for container? Stefan Monnier <monnier@iro.umontreal.ca> - 2024-05-06 22:30 +0200
      Re: Lightweight Emacs for container? Michael Kjörling <2695bd53d63c@ewoof.net> - 2024-05-06 23:00 +0200
      Re: Lightweight Emacs for container? <tomas@tuxteam.de> - 2024-05-07 06:30 +0200
    Re: Lightweight Emacs for container? David Wright <deblis@lionunicorn.co.uk> - 2024-05-06 22:40 +0200
    Re: Lightweight Emacs for container? Jeffrey Walton <noloader@gmail.com> - 2024-05-07 06:10 +0200

#269212 — Lightweight Emacs for container?

From"Dr. Jennifer Nussbaum" <bg271828@yahoo.com>
Date2024-05-06 21:40 +0200
SubjectLightweight Emacs for container?
Message-ID<IBclP-by2P-11@gated-at.bofh.it>
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?

[toc] | [next] | [standalone]


#269213

FromStefan Monnier <monnier@iro.umontreal.ca>
Date2024-05-06 22:30 +0200
Message-ID<IBd8d-byyz-13@gated-at.bofh.it>
In reply to#269212
> 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

[toc] | [prev] | [next] | [standalone]


#269215

FromMichael Kjörling <2695bd53d63c@ewoof.net>
Date2024-05-06 23:00 +0200
Message-ID<IBdBf-byI8-1@gated-at.bofh.it>
In reply to#269213
On 6 May 2024 16:19 -0400, from monnier@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?”

[toc] | [prev] | [next] | [standalone]


#269220

From<tomas@tuxteam.de>
Date2024-05-07 06:30 +0200
Message-ID<IBkCJ-bDhT-1@gated-at.bofh.it>
In reply to#269213

[Multipart message — attachments visible in raw view] — view raw

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

[toc] | [prev] | [next] | [standalone]


#269214

FromDavid Wright <deblis@lionunicorn.co.uk>
Date2024-05-06 22:40 +0200
Message-ID<IBdhU-byBJ-1@gated-at.bofh.it>
In reply to#269212
On Mon 06 May 2024 at 19:37:39 (+0000), 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 <MYSQL>

as a /user/, where <MYSQL> 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.

[toc] | [prev] | [next] | [standalone]


#269219

FromJeffrey Walton <noloader@gmail.com>
Date2024-05-07 06:10 +0200
Message-ID<IBkjn-bD5L-3@gated-at.bofh.it>
In reply to#269212

[Multipart message — attachments visible in raw view] — view raw

On Mon, May 6, 2024 at 6:45 PM Dr. Jennifer Nussbaum <bg271828@yahoo.com>
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: <https://superuser.com/q/617468>.

Jeff

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.user


csiph-web