mg, originally called MicroGnuEmacs (and later changed at the request of Richard Stallman), is a public-domain text editor that runs on Unix-like operating systems. It is based on MicroEMACS, but intended to more closely resemble GNU Emacs while still maintaining a small memory footprint and fast speed. An expanded version of the original is included as part of OpenBSD, where it is maintained, and snapshots of the OpenBSD version are available in the native package management trees of many other systems, including MacPorts, FreeBSD Ports, pkgsrc and Debian.