summaryrefslogtreecommitdiffstats
path: root/.emacs.d/init.el
diff options
context:
space:
mode:
authorAmin Bandali <bandali@gnu.org>2019-06-05 23:26:52 -0400
committerAmin Bandali <bandali@gnu.org>2019-06-05 23:26:52 -0400
commit109a3e041d2585e1d4260f74bc84843734bf3371 (patch)
tree9670a52f2a316b8849854d61c1fe21f6f3b5c103 /.emacs.d/init.el
parent0c53f5ae4c908b19df2f473c3f2781ac705a1c68 (diff)
downloadconfigs-109a3e041d2585e1d4260f74bc84843734bf3371.tar.gz
configs-109a3e041d2585e1d4260f74bc84843734bf3371.tar.xz
configs-109a3e041d2585e1d4260f74bc84843734bf3371.zip
Revert "emacs: remove slack"
This reverts commit 216b87f104cb38dea4c71f2e5890f665a4c37820. Well, sadly I do have to drop by slack every now and again this summer. So let’s keep this installed for now.
Diffstat (limited to '')
-rw-r--r--.emacs.d/init.el45
1 files changed, 45 insertions, 0 deletions
diff --git a/.emacs.d/init.el b/.emacs.d/init.el
index 0dc3610..b02ab90 100644
--- a/.emacs.d/init.el
+++ b/.emacs.d/init.el
@@ -1541,6 +1541,51 @@ For disabling the behaviour for certain buffers and/or modes."
org-ref-bibliography-notes "~/usr/org/notes.org"
org-ref-pdf-directory "~/usr/org/bibtex-pdfs/"))
+;; ugh, temporary (still better than using the proprietary web app)
+(use-package slack
+ :commands (slack-start)
+ :init
+ (eval-when-compile ; silence the byte-compiler
+ (defvar url-http-data nil)
+ (defvar url-http-extra-headers nil)
+ (defvar url-http-method nil)
+ (defvar url-callback-function nil)
+ (defvar url-callback-arguments nil)
+ (defvar oauth--token-data nil))
+ (setq slack-buffer-emojify t
+ slack-prefer-current-team t)
+ :config
+ (slack-register-team
+ :name "nday-students"
+ :default t
+ :token nday-students-token
+ :subscribed-channels '(general)
+ :full-and-display-names t)
+ (add-to-list 'swiper-font-lock-exclude 'slack-message-buffer-mode t)
+ (setq lui-time-stamp-format "[%Y-%m-%d %H:%M:%S]"
+ lui-time-stamp-only-when-changed-p t
+ lui-time-stamp-position 'right)
+ :bind
+ (("C-c s s" . slack-start)
+ ("C-c s u" . slack-select-unread-rooms)
+ ("C-c s b" . slack-select-rooms)
+ ("C-c s t" . slack-change-current-team)
+ ("C-c s c" . slack-ws-close)
+ :map slack-mode-map
+ ("M-p" . slack-buffer-goto-prev-message)
+ ("M-n" . slack-buffer-goto-next-message)
+ ("C-c e" . slack-message-edit)
+ ("C-c k" . slack-message-delete)
+ ("C-c C-k" . slack-channel-leave)
+ ("C-c r a" . slack-message-add-reaction)
+ ("C-c r r" . slack-message-remove-reaction)
+ ("C-c r s" . slack-message-show-reaction-users)
+ ("C-c p l" . slack-room-pins-list)
+ ("C-c p a" . slack-message-pins-add)
+ ("C-c p r" . slack-message-pins-remove)
+ ("@" . slack-message-embed-mention)
+ ("#" . slack-message-embed-channel)))
+
(use-package alert
:commands (alert)
:init (setq alert-default-style 'notifications))