Installing emacs on buster
source link: https://willschenk.com/articles/2021/installing_emacs_on_buster/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Published March 5, 2021 #emacs, #debian, #flatpak
I've already written about installing emacs-snapshot on debian buster, here are two additional ways. The first is to use flatpak, and the other is to build from source.
Flatpack
sudo apt-get install flatpak
sudo apt install gnome-software-plugin-flatpak
sudo flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
Then:
sudo flatpak install flathub org.gnu.emacs
And running it:
flatpak run org.gnu.emacs
You can then pin it in your dock and you are good to go.
From Source
For buster debian, make sure you have the deb-src lines in your /etc/apt/sources.list
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:
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 ./authgen.sh
and ./configure
:
cd emacs
./autogen.sh
./configure
make
You can test this out by running:
src/emacs
Or just install it:
sudo make install
.desktop
file:
This is what I have in my ~/.local/share/applications/emacs.desktop
:
[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;
Native json support test
The whole point of this for me was to see if we have native json support. We can test this with:
(if (functionp 'json-serialize)
(message "Native JSON is available")
(message "Native JSON is *not* available"))
Native JSON is available
References
Recommend
-
38
This is the official call for artwork proposals for the Buster cycle. For the most up to date details, please refer to thewiki. We would also like to take this opportunity to thank Juliette Taka Beli...
-
31
今天给大家介绍的是一款名叫Hash Buster的工具,大家可以利用这款工具提供的API服务来进行hash查询。 功能介绍
-
43
Download Buster: Captcha Solver for Humans for Firefox. Save time by asking Buster to solve captchas for you.
-
38
When we work with SPAs and web applications we need to handle with the browser’s cache. Sometimes we change our static files but the client’s browser uses a cached version of the file instead of the new one. We can tell t...
-
57
Debian Buster will only be 54% reproducible (while we could be at >90%) To : [email protected] , General discussions...
-
33
Planned release of buster on 2019-07-06 and the last weeks up to the release [Date Prev][Date Next] [
-
35
-
33
Debian 10 buster released July 6th, 2019 After 25 months of development the Debian project is proud to present its new stable version 10 (code name buster), which will be supported for the next 5 ye...
-
19
-
49
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK