Skip to content

Latest commit

 

History

History
69 lines (55 loc) · 2.26 KB

README.org

File metadata and controls

69 lines (55 loc) · 2.26 KB

Slack layer

img/slack.png

Table of Contents

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 configuration layer, add it to your ~/.spacemacs. You will need to add slack to the existing dotspacemacs-configuration-layers list in this file.

Configuration

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

To test that everything is alright put the following snippet in your dotspacemacs/user-config() replacing client-id, client-secret and token with your info.

Important Do not keep private data in your dotfile. You can put your private stuff elsewhere (like Dropbox for instance) and load the file in your dotfile.

(slack-register-team
  :name "emacs-slack"
  :default t
  :client-id "my@email.address"
  :client-secret "mypassword"
  :token "token"
  :subscribed-channels '(general slackbot))

Key bindings

Key BindingDescription
SPC a C s(Re)connects to Slack
SPC a C jJoin a channel
SPC a C dDirect message someone
SPC a C qClose connection
SPC m jJoin a channel
SPC m dDirect message someone
SPC m pLoad previous messages
SPC m eEdit message at point
SPC m qQuit Slack
SPC m mEmbed mention of user
SPC m cEmbed mention of channel

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

Key BindingDescription
<SPC> m kJoin 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.