Skip to content

Instantly share code, notes, and snippets.

@xenodium
Last active June 6, 2023 17:05
Show Gist options
  • Save xenodium/d9425fa4fa19af332bc443ecaf8870e2 to your computer and use it in GitHub Desktop.
Save xenodium/d9425fa4fa19af332bc443ecaf8870e2 to your computer and use it in GitHub Desktop.
Decline sender offer from mu4e using chatgpt-shell
(defun ar/chatgpt-decline-offer-from-sender ()
(interactive)
(unless (eq major-mode 'mu4e-compose-mode)
(user-error "Not in mu4e:compose mode"))
(let ((chatgpt-shell-prompt-query-response-style 'inline))
(chatgpt-shell-send-to-buffer
(concat "write a succinct email reply body and kindly decline explictly to the following email as I am not interested: \n\n"
(buffer-substring-no-properties (point-min) (point-max))))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment