japanoise / emsys

ersatz-emacs text editor
MIT License
3 stars 2 forks source link
emacs text-editor

emsys - ersatz-emacs text editor

An ersatz-emacs text editor for unix-like systems (and msys, hence the name!) with no dependencies. It's not much, but it punches above its weight class!

Pros

Cons

Anti-features

Installation

Windows (msys2)

You will need to be running on msys2 proper, not the mingw64 version, because you need termios (sorry, but it's a must). Install the compliers and libraries:

pacman -S msys2-devel msys2-runtime-devel

Then, make && make install and you should be laughing.

Unix

No dependencies (yet), so long as you have make and a C compiler you should be able to just make && sudo make install.

Usage

emsys is not a 'modal' editor - text entered goes straight into the buffer, without having to enter an insert mode.

Keybindings below are described in the usual Emacs format (C-x means Control-x, M-x means Alt-x or Escape then x).

Emacs Jargon

Basic Commands

Cursor

Text Editing

Note that commands dealing with capitalization only work for ASCII letters - any other characters will be ignored.

If you want to change how paragraph and word endings are calculated, edit the file bound.c.

Windows

Advanced

Registers

Registers let you store a point, string (region), rectangle (see below), number, or keyboard macro. Every register has a name, which must be one ASCII character (including control characters, except C-g since that's the universal cancel button).

Rectangles

Rectangles are the rectangular space between point and mark; all characters from the leftmost column to the rightmost column within the topmost line to the bottommost line.

Regular Expression Syntax

emsys uses kokke's tiny-regex-c for regular expression support, and has the following syntax for regular expressions:

Forks

Copying

Licensed MIT.