hubisan / emacs-wsl

Install and run Emacs with the Windows Subsystem for Linux (WSL 2) in Windows 10 or 11.
568 stars 43 forks source link

Add snap as an alternative to install Emacs #22

Closed hubisan closed 3 years ago

hubisan commented 4 years ago

[Update 31.08.202] Snap is not supported yet by WSL or WSL2 (only with a hack).

There is a snap (https://snapcraft.io/emacs) which lets you install emacs. Add installing with snap as installation alternative.

The following needs to be changed once this works:

* Install Emacs

You can install Emacs on the command line or when using the Ubuntu distribution
with snap.

** On Command line
...

** With snap

Snap needs to be [[https://snapcraft.io/docs/installing-snap-on-ubuntu][installed]] and then you can use the Emacs [[https://snapcraft.io/emacs][snap]].

Install the version you want with ([[https://snapcraft.io/emacs/embedded?button=black&channels=true][current versions]] for each):

| latest/stable    | ~sudo snap install emacs --classic~             |
| latest/candidate | ~sudo snap install emacs --candidate --classic~ |
| latest/beta      | ~sudo snap install emacs --beta --classic~      |
| latest/edge      | ~sudo snap install emacs --edge --classic~      |
hubisan commented 4 years ago

Snap is not supported yet with WSL and WSL2 (only with a hack).

hubisan commented 3 years ago

Easier to just build it from source. The snap gives me some fontcache errors with apparently others have as well (seen in a post).

And it will probably not work in WSL anyway.