FG
💻 Software

How do I log M-x usage in emacs?

Fresh5 days ago
Mar 15, 2026451 views
Confidence Score0%
0%

Problem

I want to log my usage of M-x in emacs to a file so that I can see which functions I should learn the shortcut to / bind a shortcut for. This would preferably just append the names of the used functions to a file/emacs-buffer, maybe with a timestamp, so that I can see in what context I use them. Do…

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: How do I log M-x usage in emacs?

Low Risk

You can start with this elisp, which will simply add the commands you execute to a given log file. You can get fancier and do automatic tallying if you want. Or, you can occasionally just pipe the file through a .

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment