The Craft of Text Editing
I just ran across Craig Finseth’s book The Craft of Text Editing. It’s a kind to implementing a text editor, given the knowledge current as of 1991 (which, sadly, hasn’t progressed a bit — the old text editors are in many cases far more advanced than the modern ones). An essential read if you’re looking to write an emacs-like editor.