Build emacs 25 rpm for redhat / centos 7

This is for the console only (no graphical xwindows) version. Installs into /opt/emacs253 so can run side-by-side with system emacs.

  • # Download emacs tarball & untar
  • ./configure –prefix=/opt/emacs253 –with-gif=no –with-tiff=no –with-x-toolkit=no \
    –with-xpm=no –with-jpeg=no –with-png=no
  • # install any dependencies & build
    make
    make DESTDIR=/tmp/emacs
  • # Install fpm (gem install fpm) to build package
    fpm -s dir -t rpm -C /tmp/emacs –name emacs25 –version 25.3 –iteration 1 –description “emacs 25.3”
  • rm -rf /tmp/emacs

 

gsconnect – native kdeconnect for gnome

https://extensions.gnome.org/extension/1319/gsconnect/ is a fantastic implementation of kdeconnect which allows you interface with your android phone from your linux desktop.

I had some issues configuring it on Fedora as I was previously using kdeconnectd so gsconnect defaulted to the next available port (1717).

To resolve this I removed kdeconnectd (yum remove), uninstalled gsconnect (rm -rf ~/.local/share/gnome-shell/extensions/gsconnect@andyholmes.github.io), wiped the prefs (dconf reset -f /org/gnome/shell/extensions/gsconnect/)  and then reinstalled gsconnect.

Test it’s listening on 1716:

lsof -Pi | grep 171

And sync with kdeconnect android app.

(Also ensure your linux machine isn’t firewalling the ports).

Another useful emacs package: crux

Contains various helper functions including crux-duplicate-and-comment-current-line-or-region for when you want to rework a line of code but keep the original. I’ve added these shortcuts:

pico-8

PICO-8 is a fantasy console for making, sharing and playing tiny games and other computer programs. When you turn it on, the machine greets you with a shell for typing in Lua commands and provides simple built-in tools for creating your own cartridges.

pico 8