Comments (1)
right, sorry! I forgot to mention that emacs-slack needed an edit: ag91/emacs-slack@1f2ae6c
Could you try to define the following function and try again?
(defun slack-message-notify-alert (message room team)
(if (slack-message-notify-p message room team)
(let ((team-name (oref team name))
(room-name (slack-room-name room team))
(text (with-temp-buffer
(goto-char (point-min))
(insert (slack-message-to-alert message team))
(slack-buffer-buttonize-link)
(buffer-substring-no-properties (point-min)
(point-max))))
(user-name (slack-message-sender-name message team)))
(if (and (eq alert-default-style 'notifier)
(slack-im-p room)
(or (eq (aref text 0) ?\[)
(eq (aref text 0) ?\{)
(eq (aref text 0) ?\<)
(eq (aref text 0) ?\()))
(setq text (concat "\\" text)))
(alert (if (slack-im-p room) text (format "%s: %s" user-name text))
:icon slack-alert-icon
:title (if (slack-im-p room)
(funcall slack-message-im-notification-title-format-function
team-name room-name (slack-thread-message-p message))
(funcall slack-message-notification-title-format-function
team-name room-name (slack-thread-message-p message)))
:category 'slack))))
:category 'slack
:data (list
:team-id (slack-team-id team)
:room-id (oref room id)
:room-name (slack-room-name room team)
:team-name (oref team name)
:ts (slack-ts message)
:formatted-ts (ts-format "[%H:%m]" (ts-now)))))))
from ol-emacs-slack.
Related Issues (3)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ol-emacs-slack.