Instantly share code, notes, and snippets.

What would you like to do?
Emacs を終了したら LINE に通知が行くやつ
(require 'request)
(defconst line-notify--endpoint
(setq line-notify-token "XXXXXXXXXX")
(defun line-notify-sync (message)
:type "POST"
:sync t
:data `(("message" . ,message))
:headers `(("Authorization" . ,(concat "Bearer " line-notify-token)))))
(add-hook 'kill-emacs-hook
(lambda nil
(line-notify-sync (concat "died at "
(format-time-string "%Y/%m/%d %r")))))

This comment has been minimized.

Show comment
Hide comment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment