Conao3 Notes

5265b1.org

「Seven fun new features in Emacs 27, shown in screenshots」の 5265b1.org です。「そのまま開く」はファイルをそのまま返します。

* Seven fun new features in Emacs 27, shown in screenshots
:properties:
:export_file_name: generated/contents/blog/2026/5265b1
:export_date: 2026-11-27 23:00
:export_updated: 2026-11-27 23:00
:export_tags: emacs release-notes
:export_lang: en
:export_original: /blog/2026/92689a
:end:
I picked seven new features from the Emacs 27 NEWS that you notice the moment you use them, and this post shows each one in a screenshot of Emacs 27.2.
Many of them are still in daily use, such as =tab-bar-mode=, which switches window layouts with tabs, and =isearch-lazy-count=, which shows which match you are on.

The NEWS lives in [[https://github.com/emacs-mirror/emacs/blob/emacs-31.1/etc/NEWS.27][etc/NEWS.27]] and runs to 3,251 lines.
I took every screenshot in Emacs 27.2 started with =emacs -Q=, and I include the code for each feature that needs a setting.

** Switch window layouts with tabs

[[https://github.com/emacs-mirror/emacs/blob/emacs-31.1/etc/NEWS.27#L2336][tab-bar-mode]] puts tabs at the top of the frame, and each tab keeps its own window layout.
[[https://github.com/emacs-mirror/emacs/blob/emacs-31.1/etc/NEWS.27#L2364][global-tab-line-mode]] shows, above each window, the buffers you have opened in that window as tabs.

#+begin_src emacs-lisp
(tab-bar-mode 1)
(global-tab-line-mode 1)
#+end_src

[[./resources/public/img/92689a-tabs.png]]

The upper row is the tab bar with two tabs, =app.py= and =notes=, which I named with =tab-rename=.
The lower row is the tab line with the three buffers opened in this window.

The tab bar commands live under =C-x t=: =C-x t 2= opens a new tab, and =C-x t 0= closes the current one.

** Draw a vertical line at the fill column

[[https://github.com/emacs-mirror/emacs/blob/emacs-31.1/etc/NEWS.27#L526][display-fill-column-indicator-mode]] draws a vertical line at the =fill-column= column.
According to the NEWS, it does what the fill-column-indicator package does, only faster.

#+begin_src emacs-lisp
(add-hook 'prog-mode-hook #'display-fill-column-indicator-mode)
#+end_src

[[./resources/public/img/92689a-fci.png]]

I set =fill-column= to 40 for the screenshot, and the lines that run past the line stand out.

** Show the match count in Isearch

Set [[https://github.com/emacs-mirror/emacs/blob/emacs-31.1/etc/NEWS.27#L1589][isearch-lazy-count]] to =t=, and the =C-s= prompt shows the number of the current match and the total number of matches.

#+begin_src emacs-lisp
(setq isearch-lazy-count t)
#+end_src

[[./resources/public/img/92689a-lazy-count.png]]

I searched for =self= in app.py and pressed =C-s= once more, and the prompt shows =2/9=.
With the count in view, you know how many more =C-s= presses are left.

** Show emoji in color and name the character at point

Emacs drawing with Cairo 1.16.0 or later can [[https://github.com/emacs-mirror/emacs/blob/emacs-31.1/etc/NEWS.27#L523][display multicolor fonts]] such as Noto Color Emoji.
In Emacs 27 you set up the font yourself, so I told Emacs to use Noto Color Emoji for symbol characters.

#+begin_src emacs-lisp
(set-fontset-font t 'symbol "Noto Color Emoji" nil 'prepend)
(setq what-cursor-show-names t)
#+end_src

[[./resources/public/img/92689a-emoji.png]]

With [[https://github.com/emacs-mirror/emacs/blob/emacs-31.1/etc/NEWS.27#L341][what-cursor-show-names]] set to =t=, =C-x == also shows the name of the character at point.
In the screenshot I pressed =C-x == on 🍣, and the echo area says =SUSHI=.

** See in Help which version introduced a function

The descriptions from =C-h f= and =C-h v= now give [[https://github.com/emacs-mirror/emacs/blob/emacs-31.1/etc/NEWS.27#L1549][an estimate of the release that introduced the function or variable]].

[[./resources/public/img/92689a-introduced.png]]

The description of =electric-pair-mode= says "Probably introduced at or before Emacs version 24.1.", and 24.1 is a link.
Emacs estimates the version from the old NEWS files, and the word =Probably= at the start of the sentence says so.

** Highlight the changed words inside a diff

=diff-mode= [[https://github.com/emacs-mirror/emacs/blob/emacs-31.1/etc/NEWS.27#L1050][refines hunks with font-lock]], highlighting the changed words as soon as the diff appears.
[[https://github.com/emacs-mirror/emacs/blob/emacs-31.1/etc/NEWS.27#L1046][diff-buffers]], which compares two buffers, is new as well.

[[./resources/public/img/92689a-diff-refine.png]]

Here =diff-buffers= compares app.py with an edited copy.
Only the changed words of the comment and the =2= that became =4= after =indent== get the darker color.

** Use Fido for ido-style minibuffer completion

[[https://github.com/emacs-mirror/emacs/blob/emacs-31.1/etc/NEWS.27#L1325][fido-mode]], built on Icomplete, works like ido: it lists the candidates in a row in the minibuffer and narrows them as you type.
The name stands for "Fake Ido".

#+begin_src emacs-lisp
(fido-mode 1)
#+end_src

[[./resources/public/img/92689a-fido.png]]

After =M-x tab-bar=, the tab bar commands appear separated by =|=, with =tab-bar-mode= first.
=RET= picks the first candidate.

** New features from Emacs 27 to the development version

I wrote one post in the same format for each Emacs release from 27 to the development version.

- [[https://s.conao3.com/blog/2026/4d4a52][Fun new features in the Emacs development version, shown in screenshots]]
- [[https://s.conao3.com/blog/2026/26ed0f][Seven fun new features in Emacs 31, shown in screenshots]]
- [[https://s.conao3.com/blog/2026/516114][Seven fun new features in Emacs 30, shown in screenshots]]
- [[https://s.conao3.com/blog/2026/9e936f][Seven fun new features in Emacs 29, shown in screenshots]]
- [[https://s.conao3.com/blog/2026/5e8afb][Seven fun new features in Emacs 28, shown in screenshots]]