spacemacs/layers/+chat/jabber/README.org

86 lines
2.7 KiB
Org Mode
Raw Normal View History

#+TITLE: Jabber layer
2015-07-24 00:23:22 +00:00
2019-05-02 21:49:30 +00:00
#+TAGS: chat|layer
2015-07-24 00:23:22 +00:00
[[file:img/jabber-logo.gif]]
2019-05-07 20:05:06 +00:00
* Table of Contents :TOC_5_gh:noexport:
2017-05-22 14:16:12 +00:00
- [[#description][Description]]
2017-08-28 21:58:10 +00:00
- [[#features][Features:]]
2017-05-22 14:16:12 +00:00
- [[#install][Install]]
- [[#key-bindings][Key bindings]]
- [[#jabber-roster][Jabber Roster]]
- [[#hipchat][HipChat]]
- [[#authentication][Authentication]]
- [[#joining-rooms][Joining rooms]]
2015-07-24 00:23:22 +00:00
* Description
2017-08-28 21:58:10 +00:00
This layer adds support for the Jabber (XMPP) client for Emacs
** Features:
- Use Jabber without having to leave Spacemacs
2015-07-24 00:23:22 +00:00
* Install
To use this configuration layer, add it to your =~/.spacemacs=. You will need to
add =jabber= to the existing =dotspacemacs-configuration-layers= list in this
file.
2015-07-24 00:23:22 +00:00
* Key bindings
2015-09-03 00:29:26 +00:00
| Key binding | Description |
2015-08-27 01:16:24 +00:00
| ~SPC a j~ | Connect all accounts |
2015-07-24 00:23:22 +00:00
** Jabber Roster
2017-04-25 15:42:58 +00:00
| Key binding | Description |
2015-08-27 01:16:24 +00:00
| ~SPC m a~ | Jabber send presence |
| ~SPC m b~ | Jabber get browse |
| ~SPC m d~ | Jabber disconnect |
| ~SPC m e~ | Jabber roster edit action at point |
| ~SPC m g~ | Jabber display roster |
| ~SPC m i~ | Jabber get disco items |
| ~SPC m j~ | Jabber muc join |
| ~SPC m q~ | bury buffer |
2015-08-17 18:25:48 +00:00
| ~SPC m r~ | Jabber roster toggle offline display |
2015-08-27 01:16:24 +00:00
| ~SPC m s~ | Jabber send subscription request |
| ~SPC m v~ | Jabber get version |
| ~SPC m RET~ | Jabber roster ret action at point |
2015-09-03 00:29:26 +00:00
* HipChat
** Authentication
To find YOUR_JABBER_ID visit "XMPP/Jabber info" section on your profile page at hipchat.com
2018-09-19 03:54:47 +00:00
#+BEGIN_SRC emacs-lisp
2015-09-03 00:29:26 +00:00
(setq ssl-program-name "gnutls-cli"
ssl-program-arguments '("--insecure" "-p" service host)
ssl-certificate-verification-policy 1)
(setq jabber-account-list '(("YOUR_JABBER_ID@chat.hipchat.com"
(:port . 5223)
(:password . "YOUR_PASS")
(:connection-type . ssl))))
2018-09-19 03:54:47 +00:00
#+END_SRC
2015-09-03 00:29:26 +00:00
** Joining rooms
To simplify joining rooms, you can use something like this:
2018-09-19 03:54:47 +00:00
#+BEGIN_SRC emacs-lisp
2015-09-03 00:29:26 +00:00
(defvar hipchat-room-list '(
("HIPCHAT NAME" . "XMPP/JABBER NAME")
))
2015-09-03 00:29:26 +00:00
(defvar hipchat-number "")
(defvar hipchat-nickname "YOU_NICKNAME")
(defun hipchat-join ()
(interactive)
(let* ((room-list (sort (mapcar 'car hipchat-room-list) 'string-lessp))
(selected-room (completing-read "Room name: " room-list))
(hipchat-mapping (cdr (assoc selected-room hipchat-room-list))))
(jabber-groupchat-join
(jabber-read-account)
(concat hipchat-number "" hipchat-mapping "@conf.hipchat.com")
hipchat-nickname
t)))
2018-09-19 03:54:47 +00:00
#+END_SRC