Skip to content

Instantly share code, notes, and snippets.

@owainlewis
Created May 8, 2013 10:58
Show Gist options
  • 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

@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