Skip to content

Instantly share code, notes, and snippets.

@owainlewis
Created May 8, 2013 10:58
Show Gist options
  • Star 15 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save owainlewis/5539754 to your computer and use it in GitHub Desktop.
Save owainlewis/5539754 to your computer and use it in GitHub Desktop.
HipChat Jabber Emacs
;; HipChat
(setq ssl-program-name "gnutls-cli"
ssl-program-arguments '("--insecure" "-p" service host)
ssl-certificate-verification-policy 1)
;; Connect using jabber.el
;; M-x jabber-connect <RET>
;; Config
(setq jabber-account-list '(("USER@chat.hipchat.com")))
(defvar hipchat-number "USERID")
(defvar hipchat-nickname "Owain Lewis")
;; Join a room
(defun hipchat-join (room)
(interactive "sRoom name: ")
(jabber-groupchat-join
(jabber-read-account)
(concat hipchat-number "_" room "@conf.hipchat.com")
hipchat-nickname
t))
;; Mention nicknames in a way that HipChat clients will pickup
(defun hipchat-mention (nickname)
(interactive
(list (jabber-muc-read-nickname jabber-group "Nickname: ")))
(insert (concat "@\"" nickname "\" ")))

Setup Emacs with HipChat

  • brew install gnutls (for ssl)

Emacs

@kracekumar
Copy link

I tried above method, M-x jabber-connect properhipcatid but jabber picks up nil@nil.

Jabber connection failed
nil@nil: connection lost: `Couldn't connect to (nil . 5222): Wrong type argument: stringp, nil'

@bitops
Copy link

bitops commented Apr 30, 2015

I had to do a bit more to get it working: https://gist.github.com/bitops/77308b347bceb54302a2

@o3h
Copy link

o3h commented Apr 12, 2017

Install package: jabber [no match]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment