Modular in-buffer completion framework for Emacs