this post was submitted on 27 Nov 2023
1 points (100.0% liked)
Emacs
311 readers
1 users here now
A community for the timeless and infinitely powerful editor. Want to see what Emacs is capable of?!
Get Emacs
Rules
- Posts should be emacs related
- Be kind please
- Yes, we already know: Google results for "emacs" and "vi" link to each other. We good.
Emacs Resources
Emacs Tutorials
- Beginner’s Guide to Emacs
- Absolute Beginner's Guide to Emacs
- How to Learn Emacs: A Hand-drawn One-pager for Beginners
Useful Emacs configuration files and distributions
Quick pain-saver tip
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
That's is a good idea! Despite what all others say. I'm doing this since years with my Linux box(es).
But you need to know, that self compiled programms should be stored below the filesystem tree
/usr/local/
.There is a tool called
stow
, it has a package in most Linux distributions.Install
stow
into host and VM and create a directory/usr/local/stow/
in both (host an VM).When compiling Emacs or other programs use the
--prefix
option ofconfigure
. E.g.cd emacs-src; ./configure --prefix=/usr/local/stow/emacs-v29.1
. Then compile Emacs and install it in the virtual machine. After that, tar the folder/usr/local/stow/emacs-v29.1
and unpack it onto the host into the same directory. Then change dir into/usr/local/stow
and runsudo stow emacs-v29.1
. Maybe you need to install some libraries onto the host, useldd /usr/local/bin/emacs
to see, what libs you need. Then you are ready to use emacs. It is possible to have multiple versions of emacs installed and only one needs to be "activated" via stow.