Back to the talks Previous by time: Learning an ancient language with an ancient text editor Next by time: It's Probably Not a Virus Track: General - Watch

Revisiting Emacs Mouse Interactions with Anju

Charles Y. Choi - IRC: kickingvegas, Website: http://yummymelon.com/devnull/ Mastodon: @kickingvegas@sfba.social, kickingvegas@gmail.com

The following image shows where the talk is in the schedule for Sun 2026-12-13. Solid lines show talks with Q&A via BigBlueButton. Dashed lines show talks with Q&A via IRC or Etherpad.

Schedule for SundaySundaySun 9:00- 9:10 Sunday opening remarkssun-openSun 9:10- 9:20 BONE and gnaw.el: tracking what mattersboneSun 9:35- 9:50 Local file history possibilities in EmacslocalSun 10:05-10:20 hutch: code reviews for the mildly disenfranchisedhutchSun 10:30-11:15 Team-oriented AI-activity: Beyond the chatbot -- Towards convivial AI workflow frameworksteamSun 11:25-11:45 Beyond shell history: Saving compilation output in EmacscompileSun 1:00- 1:20 DnD and Org Roam: Becoming a Better DM with EmacsdndSun 1:30- 1:55 Bible-gateway: A Two-Edged Sword in EmacsbibleSun 2:15- 2:35 Ghost in the Shell: a libghostty powered terminal for EmacsghostelSun 2:55- 3:15 Column-aligning text in EmacsalignSun 3:35- 3:55 Revisiting Emacs Mouse Interactions with AnjuanjuSun 4:05- 4:25 Emacs on Android - Emacs for the next 40 yearsandroidSun 4:45- 4:55 Sunday closing remarkssun-closeSun 9:10- 9:40 Canvas: A new foundation for graphics in EmacscanvasSun 10:00-10:21 prefix-tab-groupsprefixSun 10:30-10:50 Emacs as a Window Manager and concurrencyrauSun 11:10-11:30 El-gpu and pix-el: GNU Emacs 2D and 3D game programmingel-gpuSun 1:00- 2:00 [Panel] Emacs, LLMs, and Free SoftwarellmsSun 2:20- 2:40 A (sort of) REPL for learning SVGsvgSun 2:50- 3:05 Org Babel everywherebabelSun 3:25- 3:45 Learning an ancient language with an ancient text editorancientSun 4:05- 4:25 It's Probably Not a VirusvirusSun 9:10- 4:45 Sunday hallway / open micsun-hallway9 AM EST10 AM EST11 AM EST12 PM EST1 PM EST2 PM EST3 PM EST4 PM EST5 PM EST

Format: 19-min talk ; Q&A: IRC https://chat.emacsconf.org/?join=emacsconf,emacsconf-gen
Etherpad: https://pad.emacsconf.org/2026-anju
Discuss on IRC: #emacsconf-gen
Status: Ready to stream

Times in different time zones:
Sunday, Dec 13 2026, ~3:35 PM - 3:55 PM EST (US/Eastern)
which is the same as:
Sunday, Dec 13 2026, ~2:35 PM - 2:55 PM CST (US/Central)
Sunday, Dec 13 2026, ~1:35 PM - 1:55 PM MST (US/Mountain)
Sunday, Dec 13 2026, ~12:35 PM - 12:55 PM PST (US/Pacific)
Sunday, Dec 13 2026, ~8:35 PM - 8:55 PM UTC
Sunday, Dec 13 2026, ~9:35 PM - 9:55 PM CET (Europe/Paris)
Sunday, Dec 13 2026, ~10:35 PM - 10:55 PM EET (Europe/Athens)
Monday, Dec 14 2026, ~2:05 AM - 2:25 AM IST (Asia/Kolkata)
Monday, Dec 14 2026, ~4:35 AM - 4:55 AM +08 (Asia/Singapore)
Monday, Dec 14 2026, ~5:35 AM - 5:55 AM JST (Asia/Tokyo)
Find out how to watch and participate
You can watch this talk now, ahead of the conference. It will also play on the stream at the scheduled time, but this way, you can start checking out the ideas and then come to the Q&A time with more questions. Q&A will be right after the talk's time on the schedule. This talk's Q&A will start at around 2026-12-13 3:54 PM UTC-0500. It will be on the stream until the next talk starts, but people can continue asking questions and discussing ideas even after the stream moves on to the next talk. Enjoy!

00:00.405 Introduction 00:35.221 Why Anju? 00:47.951 Over-committed to the middle mouse button 01:45.478 Menus feel more like inventories 02:18.233 Surprising single vs. double-click behavior 02:48.602 Erratic context menu design 03:14.489 What does Anju do? 04:02.068 Who is Anju for? 04:36.091 Design principles: Making a calmer mouse experience 04:55.606 Menus should be organized 05:37.550 Concision is achieved with context 05:58.030 Example context criteria 06:45.567 Anju demo 07:03.558 Direct manipulation: Window splitting 07:40.508 Window swapping 07:58.233 Mode line 08:46.300 Menu bar 09:16.823 Edit menu 10:30.338 Registers menu 11:22.168 Bookmarks 11:41.258 Text formatting 12:12.998 Macro recorder menu 13:25.882 Context menus 13:49.881 Dired context menu 14:12.815 Elisp context menu 16:25.837 Org Mode context menu 16:56.073 Menu item introspection 17:33.994 Anju summary

Duration: 18:12 minutes

Description

Anju (안주) is a project to align mouse interactions in Emacs with contemporary expectations in 2026. Effort towards this alignment is made in the areas of context-sensitive menus, de-emphasis of middle mouse button usage, support for direct manipulation, and re-organization of the main menu bar. The features offered by Anju are opinionated, but avoids unconventional behavior. Anju aspires to bring a calmer mouse experience to Emacs.

This talk will present an overview of Anju (https://kickingvegas.github.io/anju/), describing its design decisions and implementation.

About the speaker: Charles Choi is a Computer Engineer and Emacs enthusiast.

Transcript

[00:00:00.405] Introduction
[00:00:00.405] Hello, my name is Charles Choi and welcome to my talk, Revisiting Emacs Mouse Interactions with Anju. Anju is a project to provide a better point and click experience for Emacs. Motivating Anju is the desire to align Emacs mouse interactions with what I think most mouse users would expect in 2026. This talk will be opinionated and hopefully not too triggering. For reference, Anju is a Korean word whose translation is food eaten alongside alcohol.
[00:00:35.221] Why Anju?
[00:00:35.221] So why make Anju? Let me start with a strong assertion. It's really weird to use a mouse with Emacs out of the box. This is why I think that.
[00:00:47.951] Over-committed to the middle mouse button
[00:00:47.951] The first one is a fixation on maintaining the middle mouse button event. This affects things like the mode line, scroll bars, dividers, and pasting text. Arguably this banding was made at a time when most mice looked like the Sun optical mice that you see here from the 90s. Times change though. For many decades now this is the baseline design of a mouse which is emulated with trackpads on laptops. The middle button has been replaced by a scroll wheel which does double duty as a button. That said, pressing this scroll wheel button is an unpleasant experience compared to the left and right buttons next to it. Given a standard right-handed configuration, the left button is used for primary selection and the right button is commonly used to raise a context menu.
[00:01:45.478] Menus feel more like inventories
[00:01:45.478] A lot of menus in Emacs feel ad-hoc design, which results in a chaotic experience for users. Often menus feel more like inventories than an information architecture. Consider, for example, Dired, which has no less than 5 separate top-level menus, whose design is best described as mid. Picking apart this design is another talk, but I'll ask, why does bytecompile in the operate menu show up for files other than Elisp?
[00:02:18.233] Surprising single vs. double-click behavior
[00:02:18.233] Another irritant is how Emacs handles single vs. double click behavior. Typical file managers like Microsoft Explorer and macOS Finder treat single click as a selection action. However, Dired and Ibuffer both treat single click as an open action like a hypertext document. This makes for a very twitchy and anxious experience.
[00:02:48.602] Erratic context menu design
[00:02:48.602] The adoption of context menu mode introduced in Emacs 28 has been uneven at best. Many modes implement their context menu by just dumping their mode map into its contents. Such an approach fails to take advantage of building a genuinely context-sensitive interface.
[00:03:14.489] What does Anju do?
[00:03:14.489] Anju makes opinionated changes to mouse behavior in Emacs. First is to enhance direct manipulation, as the mouse is intrinsically a pointing device. Second is to revisit how content is organized in menus for both the menu bar and context menus. And finally is to stop using the middle button. My opinions on application user interfaces are strongly informed by macOS and Windows. Guiding their design is the HIG and CUA, respectively. In building Anju, I've tried to make design decisions that are conventional to those platforms.
[00:04:02.068] Who is Anju for?
[00:04:02.068] Who's this for? While this meme is shown in jest, there is truth that pointing tasks are more efficiently done with a mouse. More seriously though, Anju is for everybody. I contend that Emacs is capable of good mouse support and those who insist on using a keyboard alone are missing out. With Anju, Emacs users can have both a great keyboard and mouse experience.
[00:04:36.091] Design principles: Making a calmer mouse experience
[00:04:36.091] Aspirationally, Anju tries to make using the mouse a calmer experience. Let's detail how this is achieved. First is to recognize that the mouse is a pointing device. With it, you can directly act on what you're pointing at.
[00:04:55.606] Menus should be organized
[00:04:55.606] Second is menu organization. Menus surface actionable commands to the user. Ideally, there is an information architecture that gives structure and relevance to the commands presented to the user. Two competing objectives in organizing commands is discoverability versus concision. Discoverability wants to maximize choice, whereas concision seeks to minimize it. Anju takes the opinion that the menu bar should be optimized for discoverability, and that context menus are all about concision.
[00:05:37.550] Concision is achieved with context
[00:05:37.550] To get concision, you need to take into account context. What is context? It is the set of circumstances that give meaning to an event. In general, for a context menu, the event is the place on the screen where the context menu is raised.
[00:05:58.030] Example context criteria
[00:05:58.030] Different criteria can determine when a command is shown in a context menu. These include the position of the mouse, whether text is selected, what mode is active. A whole host of different criteria can be generated and this is just only a subset here. Combinatorial logic on this criteria determines if and how a command is displayed in the menu. Other menu design concerns include nesting menus so they don't go no more than two deep, surfacing relevant commands as shelf space is limited, and minimizing switching between the mouse and keyboard to keep your hands in one place.
[00:06:45.567] Anju demo
[00:06:45.567] So, let's show Anju in action. Note that in the videos, a black circle overlay is a left mouse button press and a green circle is for the right. By default, clicking on the right mouse button will raise a context menu.
[00:07:03.558] Direct manipulation: Window splitting
[00:07:03.558] Anju uses direct manipulation to support managing windows. From a context menu, a submenu for window management is provided. As the demo illustrates, this submenu provides commands to split the current window to the side and below. Note how the new window boundary corresponds to where the mouse position is. This submenu also supports deletion of the current window.
[00:07:40.508] Window swapping
[00:07:40.508] When multiple windows are displayed, the window management menu provides a submenu for swapping windows. This menu is designed to only show possible swap directions, as it is context-sensitive.
[00:07:58.233] Mode line
[00:07:58.233] Support for direct manipulation is already in the mode line, which can resize a window both vertically and horizontally. Anju modifies the mode line to let the user maximize the window from it with a left double-click event. The double-click must occur on a blank space on the mode line as other text on the mode line can accept mouse events. After maximizing a window, the user can return back to the earlier window configuration by repeating the same left double-click event again. Another change to the mode line is binding the window management menu to the right mouse button.
[00:08:46.300] Menu bar
[00:08:46.300] Anju changes the menu bar to enhance discoverability. In particular, Anju tries to surface Emacs-specific features that distinguish it from less capable editors. I strongly feel that usage of these features is why you would want to use Emacs in the first place. The catch is that many of these features are undiscoverable. Anju tries to remedy this by making them prominent in the menu bar.
[00:09:16.823] Edit menu
[00:09:16.823] Anju has many special case commands for editing text of different sizes. Such commands work on text extents ranging from words to sentences to paragraphs. Anju adds such commands to the edit menu. Commands to duplicate, align, and delete text are also added. This demo here offers a glimpse into the editing powers of Emacs. Duplicating text can be done in one step with a duplicate command. Same for text alignment to a regular expression. Rectangle commands are a powerful editing feature of Emacs. Using C-M-mouse-1, you can select a rectangle. The rectangle submenu will then be enabled in the edit menu. Multiple spaces can be reduced to one with the Just One Space command. And then here we can see flush-lines at work, flushing all lines that contain an instance of the word pair.
[00:10:30.338] Registers menu
[00:10:30.338] Registers are an Emacs feature to store different kinds of runtime information such as text clippings, position, window configuration, and keyboard macros. In this demo, we'll store two different text selections into two different registers and then insert each stored register. Here we'll insert register 1. And in this demo, we'll insert register 2. That concludes that demo. I'm of the opinion that registers are so important that I've made them a top-level menu in the menu bar.
[00:11:22.168] Bookmarks
[00:11:22.168] Another feature that I think is important enough to put in the menu bar is bookmarks, which lets you keep track of different documents for later recall. Once you start using them, you'll quickly learn what an essential feature they are to Emacs.
[00:11:41.258] Text formatting
[00:11:41.258] For text modes, a text formatting menu is provided by the menu bar. Anju enhances this by adding menus for transforming, styling, and filling in selected text.
[00:12:12.998] Macro recorder menu
[00:12:12.998] Emacs has the ability to record user actions for playback later. This is called a keyboard macro, but despite its naming, such macros can also record mouse events. Anju adds a macro recorder menu to the Tools menu, providing access to both creating and editing macros. This demo shows the creation of a macro with a counter and shows how the macro can be edited and the counter adjusted.
[00:13:25.882] Context menus
[00:13:25.882] Anju builds off context menu mode to provide many enhancements to many different modes. These menus test multiple criteria to offer a concise set of context-sensitive commands. Anju also provides context menus that are non-mode specific as well. Let's see a couple of these context menus in action.
[00:13:49.881] Dired context menu
[00:13:49.881] Anju provides a simplified context menu for Dired that focuses on basic commands for a selected file or directory. The context menu supports creating, hiding, and removing subviews, which enables work on a directory hierarchy.
[00:14:12.815] Elisp context menu
[00:14:12.815] Dig deep enough and you'll find Elisp everywhere in Emacs. Anji offers a way to evaluate and debug Elisps through a context menu. In this demo, we'll debug a command that copies all the notes blocks in an Org file into the kill ring. As part of the debugging, we'll set up a watchlist to keep track of variables and set some breakpoints. Note how everything here is mouse driven. There's no need to recall arcane key bindings. We'll set some breakpoints. The first one on the loop, the while loop in there, and then the one right after the loop completes, which is the kill new statement on lines 13 and 20. And then we'll do a little step through. Get to our first breakpoint and we'll watch some variables. We'll watch the start variable and the end variable. Those are two variables that keep track of the start of a region and the end of a region for where a notes block is in the Org file that is. We'll see that the value of start is changed to 153 if we step through again. We'll see that the end variable has updated at the end of that loop to 258. Then we'll remove those breakpoints on loop and advance always so that we get out of it. And here we'll want to inspect a list of strings called buflist. We can see that all of the contents of the Org file have been extracted.
[00:16:25.837] Org Mode context menu
[00:16:25.837] Anju's context menu for Org Mode takes advantage of structural information about the Org file. The context menu can test what kind of section the point is in and adjust itself accordingly. For example, if the point is on a heading, commands relevant to a heading are shown. Similar treatment is done for other structural elements.
[00:16:56.073] Menu item introspection
[00:16:56.073] In Emacs, nearly everything is introspectable, and that includes menu items. In this demo, we can find out the command underlying the jump command in the registers menu. Let's see the demo in action. So, we'll first go to the help menu in the menu bar, click on describe key or mouse, and then select the jump item in the registers menu. You'll see a help buffer pop up. Showing that it is the command jump to register pressing S will then show the source code.
[00:17:33.994] Anju summary
[00:17:33.994] In summary, Anju updates mouse interactions in Emacs to be familiar to users more accustomed to a point-and-click experience. Anju does so by enhancing the mode line, the menu bar and context menus. Only a subset of the menus provided by Anju have been demonstrated here. Viewers are welcome to try Anju out to discover all of its offerings. Anju is available on MELPA and you can get its source code on GitHub. Feedback is always welcome. Thank you.

Captioner: sachac

Questions or comments? Please e-mail kickingvegas@gmail.com

Back to the talks Previous by time: Learning an ancient language with an ancient text editor Next by time: It's Probably Not a Virus Track: General - Watch