A bit tangential.. but can anyone recommend some good resources on writing a (emacs-like) text editor? I'm curious how they look architecturally

Maybe uEmacs source[0] will help? Torvalds still uses it according to his last interview..

[0] https://github.com/torvalds/uemacs