spacemacs/layers/slack/README.org
2016-06-03 21:01:33 -04:00

2.1 KiB

Slack layer

logo

/TakeV/spacemacs/media/commit/35f93610ede58ce656d2b26265c83105e578bdd1/layers/slack/img/slack.png

Description

This layer provides an interface to the Slack chat service via the emacs-slack package. Where possible, this layer aims to reuse keybindings from the IRC packages in Spacemacs.

Install

To use this contribution add it to your ~/.spacemacs

  (setq-default dotspacemacs-configuration-layers '(slack))

Follow the instructions in the emacs-slack package for obtaining your client ID, client secret, and token.

Then, in your dotspacemacs/user-init() set the following:

(setq slack-enable-emoji t)
(slack-register-team
  :name "emacs-slack"
  :default t
  :client-id "something"
  :client-secret "secret!"
  :token "token"
  :subscribed-channels '(general slackbot)
)

Key bindings

Key Binding Description
<SPC> a C s (Re)connects to Slack
<SPC> a C j Join a channel
<SPC> a C d Direct message someone
<SPC> m j Join a channel
<SPC> m d Direct message someone
<SPC> m p Load previous messages
<SPC> m e Edit message at point
<SPC> m q Quit Slack
<SPC> m m Embed mention of user
<SPC> m c Embed mention of channel

The following bindings are provided to mimic bindings in the official Slack client.

Key Binding Description
<SPC> m k Join a channel
<SPC> m @ Embed mention of user
<SPC> m # Embed mention of channel

In insert state, one can also use @ and # directly without the leader key prefix.