choose-completion-string-functions hook so it can be buffer-local.
Attach a file by drag & drop or click to upload