Where parallels cross

Interesting bits of life

Composition Update: Slack links in your Org Agenda

This is a mini update about how I compose my previous work on Slack messages in the Org Agenda and Org Mode Links for Emacs Slack: essentially if you use ol-emacs-slack just change your code from what is here to:

(use-package alert
  :after slack
   'my/alert-style :title
   "Make Org headings for messages I receive - Style"
   (lambda (info)
     (when (get-buffer "Slack.org") (with-current-buffer "Slack.org" (save-buffer)))
       "* TODO "
       (plist-get info :title)
       " : "
        "[[emacs-slack:%s][%s]] :slack:"
        (plist-get info :title)
        (s-truncate 127 (s-replace "\n" ";" (plist-get info :message))))
       (format "<%s>" (format-time-string "%Y-%m-%d %H:%M"))
       (plist-get info :message)
  (setq alert-default-style 'message)
  (add-to-list 'alert-user-configuration
               '(((:category . "slack")) my/alert-style nil)))

You will now have entries in your agenda that will bring you to the related Emacs Slack room! Easy and quick to reply to new messages.

Happy hacking!

P.S.: thanks to Jolle for improving ol-emacs-slack and making me remember to share this!