GithubHelp home page GithubHelp logo

ol-emacs-slack's Introduction

Org link for Emacs Slack

This is a bit of code to make Org links from Emacs Slack buffers. Note that this is a work in progress, so the links point to the buffers. If necessary, I will look into how to make them point to the exact line of the conversation.

Usage

Load the Elisp file like this:

(load "ol-emacs-slack.el")
(require 'ol-emacs-slack)

Then visit an Emacs Slack buffer and run org-store-link to store a pure Org Link to that buffer.

Ideas on how to use this

I use this to add link to my Org Agenda when I receive message similarly to what I wrote about in https://ag91.github.io/blog/2020/08/14/slack-messages-in-your-org-agenda/

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

Hopefully it is helpful to you as well.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.