GNU Emacs 27.2 Released! How to Install it in Ubuntu

Last updated: December 27, 2021

GNU Emacs text editor 27.2 was released as a new maintenance release.

Emacs 27.2 is a bug-fix release with no new features. According to the changelog, it changed the behavior of the user option ‘resize-mini-frames‘. If set to a non-nil value which isn’t a function, resize the mini frame using the new function ‘fit-mini-frame-to-buffer’ which won’t skip leading or trailing empty lines of the buffer.

Emacs now ignores modifier keys when IME input is used. By default, pressing Ctrl, Shift, and Alt keys while using IME input will no longer apply the modifiers to the produced characters, as there are IMEs which use keys with modifiers to input some characters. Customize the variable ‘w32-ignore-modifiers-on-IME-input’ to nil to get back the old behavior.

And the user option ‘tramp-completion-reread-directory-timeout’ is now obsolete.

How to Install Gnu Emacs in Ubuntu:

For those prefer the classic apt repository, keep an eye on the Kevin Kelley’s PPA, though it’s not been updated at the moment of writing.

For those do not like Flatpak and Snap packages, here’s also a step by step guide building Emacs from source tarball.

Emacs is also available as the containerized Snap package, which is however at version 27.1 at the moment.

The community maintained Flatpak package has built Emacs 27.2 for Linux users. Ubuntu 20.04 and higher users can open terminal and run following commands one by one to install it:

  • Install flatpak framework if you don’t have it:
    sudo apt install flatpak

  • Add flathub repository which hosts the flatpak packages:
    flatpak remote-add --if-not-exists flathub

  • Finally install Emacs flatpak package:
    flatpak install flathub org.gnu.emacs

(Optional) To remove the flatpak package, simply run command in terminal:

flatpak uninstall org.gnu.emacs


I'm a freelance blogger who started using Ubuntu in 2007 and wishes to share my experiences and some useful tips with Ubuntu beginners and lovers. Please comment to let me know if the tutorial is outdated! And, notify me if you find any typo/grammar/language mistakes. English is not my native language. Contact me via Buy me a coffee:

4 responses to GNU Emacs 27.2 Released! How to Install it in Ubuntu

  1. All the commands required sudo, at least in my command line. Thank you!

  2. Flatpak is just a lot of disk usage, and doesn’t clean out old versions.

    I had several versions of same packages, which made my /var directory full. Yes, it loaded about 5 GB and then add snap that added about 5-6 GB then the partition was almost full. After I clean out the old ones, it used half of the disk space.

    So I will stop using flatpak and snap, as it just uses up my disk space for basically nothing. I refuses to store same libraries in several flatpak and snap packages, when they are already installed.

    They are a solution to a non existant problem.

  3. I tried this method of installing emacs 27.2
    Installed however was 28.2

    Most of my .emacsrc file were ignored, Ctrl-c a org agenda did not work.
    I tried to install 27.2 from a tar.gz file but that failed with with missing lib’s
    and even installing all dev packages still gave errors.

    I needed 27.2 in order to get denote package
    Looks like I’ll have to wait till ubuntu updates emacs