Conao3 Notes

5e8afb.org

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

* Seven fun new features in Emacs 28, shown in screenshots
:properties:
:export_file_name: generated/contents/blog/2026/5e8afb
:export_date: 2026-11-27 22:55
:export_updated: 2026-11-27 22:55
:export_tags: emacs release-notes
:export_lang: en
:export_original: /blog/2026/664e4a
:end:
I picked seven new features from the Emacs 28 NEWS that you notice the moment you use them, and this post shows each one in a screenshot of Emacs 28.2.
Most of them make plain =emacs -Q= easier to drive, such as =fido-vertical-mode=, which lists minibuffer completions vertically, and =repeat-mode=, which lets you type =C-x o o o=.

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

** List minibuffer completions vertically

With [[https://github.com/emacs-mirror/emacs/blob/emacs-31.1/etc/NEWS.28#L1587][fido-vertical-mode]] on, minibuffer completion candidates appear in a vertical list under your input.
It matches candidates that contain the typed characters in order, so =list-b= also finds =list-abbrevs=.

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

[[./resources/public/img/664e4a-fido-vertical.png]]

The =1/7= at the start says the first of seven candidates is selected.
As =(C-x C-b)= next to =list-buffers= shows, [[https://github.com/emacs-mirror/emacs/blob/emacs-31.1/etc/NEWS.28#L218][M-x completion shows key bindings]], so you pick up the keys of the commands you use often.

** Add the kind and the first doc line to completions

Set [[https://github.com/emacs-mirror/emacs/blob/emacs-31.1/etc/NEWS.28#L224][completions-detailed]] to =t=, and the completion list of commands such as =C-h o= shows the kind of each candidate and the first line of its documentation.

#+begin_src emacs-lisp
(setq completions-detailed t)
#+end_src

[[./resources/public/img/664e4a-completions-detailed.png]]

The screenshot shows the list for =C-h o find-file- TAB=.
The =c=, =f= and =u= on the left mark commands, functions and user options, so you can compare =find-file-text= with =find-file-literally= without opening their documentation.

** Repeat a key without its prefix

With [[https://github.com/emacs-mirror/emacs/blob/emacs-31.1/etc/NEWS.28#L2818][repeat-mode]] on, you can type =C-x o o= instead of =C-x o C-x o=, and =C-x u u= instead of =C-x u C-x u=.

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

[[./resources/public/img/664e4a-repeat.png]]

Here I split the frame into two windows and typed =C-x { { { {=, which narrowed the right window four times.
=Repeat with ^, }, {, v= in the echo area lists the keys you can keep pressing, and any other key ends the repetition.

** Browse functions by topic, with examples and results

[[https://github.com/emacs-mirror/emacs/blob/emacs-31.1/etc/NEWS.28#L236][shortdoc]] is a cheat sheet that lists functions by topic, such as strings or lists, each with examples and their results.
Open it with =M-x shortdoc-display-group= and a topic, or with the button in a =*Help*= buffer.

[[./resources/public/img/664e4a-shortdoc.png]]

The screenshot shows the =string= group, where =(string-pad "foo" 5)= is listed with its result ="foo  "=.
When you cannot remember the name of a function, you can find it from what you want to do.

** Pick from the kill ring and paste

Press =M-y= when the previous command was not a yank, and you can [[https://github.com/emacs-mirror/emacs/blob/emacs-31.1/etc/NEWS.28#L953][choose an earlier kill in the minibuffer with completion]].

[[./resources/public/img/664e4a-m-y.png]]

I put four strings into the kill ring and typed =M-y TAB=, and the =*Completions*= buffer lists all four.

** Compile Emacs Lisp to native code

When Emacs is configured with =--with-native-compilation=, it uses libgccjit to [[https://github.com/emacs-mirror/emacs/blob/emacs-31.1/etc/NEWS.28#L65][compile Emacs Lisp to native code]].
The Lisp code of Emacs itself becomes native code, and packages are compiled in the background after they are loaded.

[[./resources/public/img/664e4a-native.png]]

=C-h f find-file= says =native-compiled Lisp function=, so this Emacs runs the native code of =find-file=.
=(native-comp-available-p)= tells you whether your Emacs supports it.

** Open a context menu with a right click

With [[https://github.com/emacs-mirror/emacs/blob/emacs-31.1/etc/NEWS.28#L242][context-menu-mode]] on, a right click in a buffer opens a menu that fits the place you clicked.

#+begin_src emacs-lisp
(context-menu-mode 1)
#+end_src

[[./resources/public/img/664e4a-context-menu.png]]

In a Python file, the menu has =Find Definition=, =Find References= and a =Python= submenu in addition to pasting and selecting.

** Other changes worth a look

- [[https://github.com/emacs-mirror/emacs/blob/emacs-31.1/etc/NEWS.28#L176][Emoji support]] has improved, and emoji sequences such as skin tones and flags display as one glyph.
- The themes [[https://github.com/emacs-mirror/emacs/blob/emacs-31.1/etc/NEWS.28#L2843][modus-operandi and modus-vivendi]] are now part of Emacs.

** 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/5265b1][Seven fun new features in Emacs 27, shown in screenshots]]