YASnippet combined with Pen.el - Controllable prompt generation

1 · Shane Mulligan · Aug. 9, 2021, 9:49 a.m.
Summary I include YASnippet in the prompt generation pipeline to enable programmatic manipulation within a prompt using emacs functions and keyboard macros. In essence, this gives you the ability to make language agnostic prompts. Explanation of problem and solution emacs has many editing functions, which are language agnostic. emacs will detect the mode and then when the prompt template expands, it will run some emacs functions on the prompt. One of those functions is comment-line....