Upgrading emacs on debian

fixing crashes

Published June 28, 2020 #howto, #emacs, #debian

Been playing with elfeed on Emacs 26.1 on buster and it keeps crashing. I think for font related reasons. So lets follow the Emacs Wiki Instructions to upgrade to emacs-snapshots and see if that helps.

Add the snap shot repository.

Make sure you have the tools installed so that apt can do it's internet thing.

sudo apt-get install software-properties-common
sudo apt-get update

Add the signing key:

wget -q http://emacs.ganneff.de/apt.key -O- | sudo apt-key add

And add the packages to your local index. Note that I'm specifically using buster here so update that if you need do.

sudo add-apt-repository "deb http://emacs.ganneff.de/ buster main"
sudo apt-get update

Remove the old emacs

I ran into a bunch of problems with the old emacs being installed at the same time, and it borked dpkg for a bit. So first lets remove everything:

sudo apt remove emacs-bin-common emacs-gtk

Add the new one

Pretty straightforward here.

sudo apt-get install emacs-snapshot 
sudo update-alternatives --config emacsclient

Fix that icon

The snapshot build has a svg icon, which the Chromebook doesn't seem to like. So lets fix that up.

mkdir -p ~/.local/share/applications/
cp /usr/share/application/emacs-snapshot.desktop ~/.local/share/applications

And then edit ~/.local/share/applications/emacs-snapshot.desktop to put the Icon to the final image place, in my case


It took a while for the changes to take but after a reboot it works great.

Start it up

Crositini will eventually update the shelf but it will take a little time.

So far, no issues and no crashes!

Read next

See also

Using Org Mode in Hugo

emacs everywhere

I'm learning org-mode and I don't really know what I'm doing, but this is how I'm trying out writing hugo posts with it. I'm used to markdown, so this is a what's different post. Some minor org-mode tweaks For some reason when org-mode starts it doesn't softwrap the paragragh text. I like to have it soft-wrapped so everything is on the screen if it's not collapsed. Also having some nice indentation makes things visually cleaner, so add this snippet to your ~/.

Read more

Using Syncthing

who needs servers

Syncthing is a way to keep things up-to-date across machines without going through any 3rd party servers. You get both backup and file synchronization without pesky servers just using the computer capacity you probably already have laying around. Lets give it a spin. Installation on Debian On the Getting Started page of syncthing they recommend using a GUI package, but we're going to install on debian on the command line.

Read more

Simple CORS workaround for local development

I've been doing a lot of web development old school, just editing HTML and JavaScript by hand without a build environment. Running npx live-server is an easy one liner to spin up a server, that opens a browser for you and also updates changes on safe. Sometimes that's not enough. Often you want to pull in data from an API, and that requires HTTPS, and also you need to work around CORS limitations.

Read more