diff options
author | Griffin Smith <grfn@gws.fyi> | 2020-08-20T16·30-0400 |
---|---|---|
committer | glittershark <grfn@gws.fyi> | 2020-08-20T16·36+0000 |
commit | 1dec64c4924b650061f808d3c7f701086751821a (patch) | |
tree | c7f813b1314f93494f87a3b797a5b6c7782ebbe4 /users/glittershark/emacs.d/slack.el | |
parent | 33e8b0f975cd8934405c568cfa1d7e2a1edfa425 (diff) |
feat(gs/emacs): Tweak slack config r/1690
Disable the prompt for sending thread replies to the channel, tweak the slack popup buffer settings, add some bindings, and move all the slack config to its own file. Change-Id: I670394942bd9b7e4cfc22953227c21d50a315c22 Reviewed-on: https://cl.tvl.fyi/c/depot/+/1798 Reviewed-by: glittershark <grfn@gws.fyi> Tested-by: BuildkiteCI
Diffstat (limited to 'users/glittershark/emacs.d/slack.el')
-rw-r--r-- | users/glittershark/emacs.d/slack.el | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/users/glittershark/emacs.d/slack.el b/users/glittershark/emacs.d/slack.el new file mode 100644 index 000000000000..8e21c4f74d57 --- /dev/null +++ b/users/glittershark/emacs.d/slack.el @@ -0,0 +1,24 @@ +;;; ~/code/depot/users/glittershark/emacs.d/slack.el -*- lexical-binding: t; -*- + +(after! slack + (set-face-foreground 'slack-message-output-header +solarized-s-base01) + (set-face-attribute 'slack-message-output-header nil :underline nil) + (set-face-attribute 'slack-message-output-text nil :height 1.0)) + +(require 'slack) +(setq slack-buffer-emojify 't + slack-prefer-current-team 't + slack-thread-also-send-to-room nil) + +(set-popup-rule! "^\\*Slack" + :quit nil + :select t + :side 'bottom + :ttl nil + :size 0.3) + +(add-hook #'slack-message-buffer-mode-hook + (lambda () (toggle-truncate-lines -1))) + +(map! (:map slack-message-buffer-mode-map + :n "q" #'delete-window)) |