about summary refs log tree commit diff
path: root/users/glittershark/emacs.d/slack.el
diff options
context:
space:
mode:
Diffstat (limited to 'users/glittershark/emacs.d/slack.el')
-rw-r--r--users/glittershark/emacs.d/slack.el24
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..ac81067bb179
--- /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.5)
+
+(add-hook #'slack-message-buffer-mode-hook
+          (lambda () (toggle-truncate-lines -1)))
+
+(map! (:map slack-message-buffer-mode-map
+       :n "q" #'delete-window))