Skip to content

Instantly share code, notes, and snippets.

@hyakt
Last active March 13, 2020 11:58
Show Gist options
  • Save hyakt/4ac5f10ffb184a97c90f4362de836304 to your computer and use it in GitHub Desktop.
Save hyakt/4ac5f10ffb184a97c90f4362de836304 to your computer and use it in GitHub Desktop.
emacsでslackのreminderを生成するやつ
(defun my/generate-slack-reminder (content)
"Generate slack reminder with CONTENT and copy to clipboard."
(interactive "sContent: ")
(require 'org)
(let* ((date (org-read-date t 'to-time nil "Date: "))
(time-string (format-time-string "%H:%M" date))
(date-string (format-time-string "%Y-%m-%d" date)))
(kill-new (concat "/remind me " content " at " time-string " on " date-string))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment