Last active
March 13, 2020 11:58
-
-
Save hyakt/4ac5f10ffb184a97c90f4362de836304 to your computer and use it in GitHub Desktop.
emacsでslackのreminderを生成するやつ
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (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