Suggesting emacs functions depending on the context

1 · Shane Mulligan · June 30, 2020, noon
TL;DR Implement in emacs lisp a way of suggesting functions to myself depending on a set of cues Demonstration Designing the plugin Some predicate atoms 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 (defun chomp (str) "Chomp leading and tailing whitespace from STR for each line." (while (string-match "\\`\n+\\|^\\s-+\\|\\s-+$\\|\n+\\'" str) (setq str (replace-match "" t t str))) str) (defalias 'q 'shell-quote-argument) (defun rpl-at-line-p (rpl) (let* ((output (chomp (shell-command-to-str...