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.
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
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.
[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 andclick experience for Emacs.Motivating Anju is the desire to align Emacsmouse interactions with what I think most mouseusers would expect in 2026.This talk will be opinionated and hopefully nottoo triggering.For reference, Anju is a Korean word whosetranslation is food eaten alongside alcohol.
[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 outof the box.This is why I think that.
[00:00:47.951]The first one is a fixation on maintaining themiddle mouse button event.This affects things like the mode line, scrollbars, dividers, and pasting text.Arguably this banding was made at a time whenmost mice looked like the Sun optical mice thatyou see here from the 90s.Times change though.For many decades now this is the baseline designof a mouse which is emulated with trackpads on laptops.The middle button has been replaced by a scrollwheel which does double duty as a button.That said, pressing this scroll wheel button isan unpleasant experience compared to the left andright buttons next to it.Given a standard right-handed configuration, theleft button is used for primary selection and theright button is commonly used to raise a context menu.
[00:01:45.478]A lot of menus in Emacs feel ad-hoc design, whichresults in a chaotic experience for users.Often menus feel more like inventories than aninformation architecture.Consider, for example, Dired, which has no lessthan 5 separate top-level menus, whose design isbest described as mid.Picking apart this design is another talk, butI'll ask, why does bytecompile in the operatemenu 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 andmacOS Finder treat single click as a selection action.However, Dired and Ibuffer both treat singleclick as an open action like a hypertext document.This makes for a very twitchy and anxious experience.
[00:02:48.602]The adoption of context menu mode introduced inEmacs 28 has been uneven at best.Many modes implement their context menu by justdumping their mode map into its contents.Such an approach fails to take advantage ofbuilding a genuinely context-sensitive interface.
[00:03:14.489]Anju makes opinionated changes to mouse behavior in Emacs.First is to enhance direct manipulation, as themouse is intrinsically a pointing device.Second is to revisit how content is organized inmenus for both the menu bar and context menus.And finally is to stop using the middle button.My opinions on application user interfaces arestrongly informed by macOS and Windows.Guiding their design is the HIG and CUA, respectively.In building Anju, I've tried to make design decisionsthat are conventional to those platforms.
[00:04:02.068]Who's this for?While this meme is shown in jest, there is truththat pointing tasks are more efficiently donewith a mouse.More seriously though, Anju is for everybody.I contend that Emacs is capable of good mousesupport and those who insist on using a keyboardalone are missing out.With Anju, Emacs users can have both a greatkeyboard 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 mousea calmer experience.Let's detail how this is achieved.First is to recognize that the mouse is apointing device.With it, you can directly act on what you'repointing at.
[00:04:55.606]Second is menu organization.Menus surface actionable commands to the user.Ideally, there is an information architecturethat gives structure and relevance to thecommands presented to the user.Two competing objectives in organizing commandsis discoverability versus concision.Discoverability wants to maximize choice, whereasconcision seeks to minimize it.Anju takes the opinion that the menu bar shouldbe optimized for discoverability, and thatcontext menus are all about concision.
[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 meaningto an event.In general, for a context menu, the event is theplace on the screen where the context menu is raised.
[00:05:58.030]Different criteria can determine when a commandis shown in a context menu.These include the position of the mouse, whethertext is selected, what mode is active.A whole host of different criteria can begenerated and this is just only a subset here.Combinatorial logic on this criteria determinesif and how a command is displayed in the menu.Other menu design concerns include nesting menusso they don't go no more than two deep, surfacingrelevant commands as shelf space is limited, andminimizing switching between the mouse andkeyboard to keep your hands in one place.
[00:06:45.567]So, let's show Anju in action.Note that in the videos, a black circle overlayis a left mouse button press and a green circleis for the right.By default, clicking on the right mouse buttonwill raise a context menu.
[00:07:03.558]Anju uses direct manipulation to support managing windows.From a context menu, a submenu for windowmanagement is provided.As the demo illustrates, this submenu providescommands to split the current window to the sideand below.Note how the new window boundary corresponds towhere the mouse position is.This submenu also supports deletion of thecurrent window.
[00:07:40.508]When multiple windows are displayed, the windowmanagement menu provides a submenu for swapping windows.This menu is designed to only show possible swapdirections, as it is context-sensitive.
[00:07:58.233]Support for direct manipulation is already in themode line, which can resize a window bothvertically and horizontally.Anju modifies the mode line to let the usermaximize the window from itwith a left double-click event.The double-click must occur on a blank space onthe mode line as other text on the mode line canaccept mouse events.After maximizing a window, the user can returnback to the earlier window configuration byrepeating the same left double-click event again.Another change to the mode line is binding thewindow management menu to the right mouse button.
[00:08:46.300]Anju changes the menu bar to enhancediscoverability.In particular, Anju tries to surfaceEmacs-specific features that distinguish itfrom less capable editors.I strongly feel that usage of these features iswhy you would want to use Emacs in the first place.The catch is that many of these features areundiscoverable.Anju tries to remedy this by making themprominent in the menu bar.
[00:09:16.823]Anju has many special case commands for editingtext of different sizes.Such commands work on text extents ranging fromwords to sentences to paragraphs.Anju adds such commands to the edit menu.Commands to duplicate, align, and delete text arealso added.This demo here offers a glimpse into the editingpowers of Emacs.Duplicating text can be done in one step with aduplicate 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 theJust One Space command.And then here we can see flush-lines at work,flushing all lines that contain an instance ofthe word pair.
[00:10:30.338]Registers are an Emacs feature to store differentkinds of runtime information such as textclippings, position, window configuration, andkeyboard macros.In this demo, we'll store two different textselections into two different registers and theninsert 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 soimportant that I've made them a top-level menu inthe menu bar.
[00:11:22.168]Another feature that I think is important enoughto put in the menu bar is bookmarks,which lets you keep track of different documentsfor later recall.Once you start using them, you'll quickly learnwhat an essential feature they are to Emacs.
[00:11:41.258]For text modes, a text formatting menu isprovided by the menu bar.Anju enhances this by adding menus fortransforming, styling, and filling in selected text.
[00:12:12.998]Emacs has the ability to record user actions forplayback later.This is called a keyboard macro, but despite itsnaming, such macros can also record mouse events.Anju adds a macro recorder menu to the Toolsmenu, providing access to both creating andediting macros.This demo shows the creation of a macro with acounter and shows how the macro can be edited andthe counter adjusted.
[00:13:25.882]Anju builds off context menu mode to provide manyenhancements to many different modes.These menus test multiple criteria to offer aconcise set of context-sensitive commands.Anju also provides context menus that arenon-mode specific as well.Let's see a couple of these context menus in action.
[00:13:49.881]Anju provides a simplified context menu for Diredthat focuses on basic commandsfor a selected file or directory.The context menu supports creating, hiding,and removing subviews, which enables workon a directory hierarchy.
[00:14:12.815]Dig deep enough and you'll find Elisp everywherein Emacs.Anji offers a way to evaluate and debug Elispsthrough a context menu.In this demo, we'll debug a command that copiesall the notes blocks in an Org file into the kill ring.As part of the debugging, we'll set up awatchlist to keep track of variablesand 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 inthere, and then the one right after the loopcompletes, which is the kill new statement onlines 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 thestart of a region and the end of a region forwhere a notes block is in the Org file that is.We'll see that the value of start ischanged to 153 if we step through again.We'll see that the end variable has updated atthe end of that loop to 258.Then we'll remove those breakpoints on loop andadvance always so that we get out of it.And here we'll want to inspect a list of stringscalled buflist.We can see that all of the contents of theOrg file have been extracted.
[00:16:25.837]Anju's context menu for Org Mode takes advantageof structural information about the Org file.The context menu can test what kind of sectionthe 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]In Emacs, nearly everything is introspectable,and that includes menu items.In this demo, we can find out the commandunderlying 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 menubar, click on describe key or mouse, and thenselect the jump item in the registers menu.You'll see a help buffer pop up.Showing that it is the command jump to registerpressing S will then show the source code.
[00:17:33.994]In summary, Anju updates mouse interactionsin Emacs to be familiar to users more accustomed toa 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 havebeen demonstrated here.Viewers are welcome to try Anju out to discoverall of its offerings.Anju is available on MELPA and you can get itssource code on GitHub.Feedback is always welcome.Thank you.