For buster debian, make sure you have the deb-src lines in your /etc/apt/sources.list
1
2
3
4
5
6
7
8
| deb http://deb.debian.org/debian buster main contrib non-free
deb-src http://deb.debian.org/debian buster main contrib non-free
deb http://deb.debian.org/debian-security/ buster/updates main contrib non-free
deb-src http://deb.debian.org/debian-security/ buster/updates main contrib non-free
deb http://deb.debian.org/debian buster-updates main contrib non-free
deb-src http://deb.debian.org/debian buster-updates main contrib non-free
|
Then lets add the dependancies and pull down the emacs source code:
1
2
3
4
5
6
7
8
9
10
11
12
| sudo apt update
# Make sure you have the builddeps
sudo apt build-dep emacs25
# Also install native json parsing
sudo apt-get install libjansson4 libjansson-dev libmagickcore-dev
# Download the monster
git clone --depth 1 --branch emacs-27 https://git.savannah.gnu.org/git/emacs.git
|
Now we can run ./autogen.sh
and ./configure
:
1
2
3
4
| cd emacs
./autogen.sh
./configure
make
|
You can test this out by running:
Or just install it:
.desktop
file:
This is what I have in my ~/.local/share/applications/emacs.desktop
:
1
2
3
4
5
6
7
8
9
10
11
12
13
| [Desktop Entry]
Version=1.0
Name=Emacs 27
GenericName=Text Editor
Comment=View and edit files
MimeType=text/english;text/plain;text/x-makefile;text/x-c++hdr;text/x-c++src;text/x-chdr;text/x-csrc;text/x-java;text/x-moc;text/x-pascal;text/x-tcl;text/x-tex;application/x-shellscript;text/x-c;text/x-c++;
Exec=/usr/local/bin/emacs %F
TryExec=emacs
Icon=emacs
StartWMClass=emacs
Type=Application
Terminal=false
Categories=Utility;Development;TextEditor;
|