This is a tiny terminal text editor modified from uEmacs/PK 4.0,
I call it Mdified Micro Emacs (me).
The script engine is removed. Concepts like paragraph and word are also
removed. Serious bugs in increamental search and keyboard macro got fixed.
The incremental search of uEmacs/PK 4.0 have some problems:
- It goes wrong on reverse search in certain situations.
- It does not work well with keyboard macros.
ANSI CSI control sequences is used directly. We don't need extra libraries
(like libncurses) to run this program.
Meta prefixed key bindings are removed. Ctrl is enough for everything.
UTF-8 support got removed and binary data is supported.
uEmacs/PK 4.0 will lost data when there is
\0in the file.
Build this program with a POSIX-compliant make.
makeTo build on non-POSIX systems: (program is not supported yet)
make PLATFORM_OBJS=nonposix.oInstall:
sudo make installTo change the installation path:
sudo make install BIN=/usr/local/binWe can make me the default editor of the system with update-alternatives:
To get the priority of editor:
update-alternatives --display editorsudo update-alternatives --install /usr/bin/editor editor /usr/bin/me 100If the priority 100 is still too low, set it manually:
sudo update-alternatives --set editor /usr/bin/meThere is a program showkey for getting raw input from terminal in the same
way as me.
Build:
make showkeyRun:
./showkeyA keyboard remapper like this one is recommended to map Space
to Ctrl on holding. This may be the most ergonomic way to use an Emacs-like
editor with a Qwerty keyboard.