To try it out, see the install instructions.
XMPP is the only instant messaging protocol which simultaneously -- has most features you expect from modern chat - offline messages, multi-device support, file transfer, message correction, A/V calls, end-to-end encryption, etc. (Excludes IRC, Tox, Briar, etc.)
- is federated, rather than centralized. (Excludes WhatsApp, Discord, Telegram, Signal, …)
- has highly efficient server implementations. A single XMPP server on a Raspberry Pi can serve thousands of users. (Excludes Matrix.)
- has a rich ecosystem of FOSS clients and servers. (Excludes WhatsApp, Discord, Telegram, Signal, …)
- is an established IETF standard. (Excludes Matrix, Tox, Telegram, Signal, …)
- is governed and evolved by an open community of users and developers.
- has outlasted all competition over 24 years. (Unless IRC counts.)
Differences from upstream
- More features - XEP-0363: HTTP File Upload, XEP-0280: Message Carbons
- Support for XEmacs and old Emacs versions has been dropped
- The external dependency
hexrgb.el
has been replaced withcolor.el
(which is part of Emacs) - The deprecated
cl
library has been replaced withcl-lib
- Build system has been changed from Autotools to a
Makefile
lexical-binding
is used in all files- Lots of cleanup by addressing
checkdoc
and byte-compiler warnings - addition/improvement of docstrings, function/variable declarations, etc
- project page
- chat: https://xmpp.link/#[email protected]?join (general Emacs and jabber.el talk)
- chat: https://xmpp.link/#[email protected]?join (jabber.el developement)
Old resources
- project page
- home page
- wiki page
- mailing list:
- chat: [email protected] and [email protected] (Russian, English)
Two required libraries, fsm.el
and srv.el
, are present in lisp/jabber-fallback-lib/.
M-: (gnutls-available-p)
If that commands shows t
in the echo area, then you have working GnuTLS support. If it shows nil
or signals an error, then you don’t.
Failing that, jabber.el will use the starttls.el library, which requires that the GnuTLS command line tool “gnutls-cli” is installed.
In Debian-based distributions, “gnutls-cli” is in the “gnutls-bin” package.
The above applies to STARTTLS connections, the most common way to encrypt a Jabber connection and the only one specified in the standards. STARTTLS connections start out unencrypted, but switch to encrypted after negotiation. jabber.el also supports connections that are encrypted from start. For this it uses the tls.el library, which requires either “gnutls-cli” or the OpenSSL command line tool “openssl” to be installed.
To use the latter form of encryption, customize jabber-account-list
.
Note that only the connection from you to the server is encrypted; there is no guarantee of connections from your server to your contacts’ server being encrypted.
To connect to a Jabber server, typeC-x C-j C-c
(or equivalently M-x jabber-connect-all
) and enter your JID. With prefix argument, register a new account. You can set your JID permanently with M-x jabber-customize
.
Your roster is displayed in a buffer called *-jabber-*
. To disconnect, type C-x C-j C-d
or M-x jabber-disconnect
.
You may want to use the menu bar to execute Jabber commands. To enable the Jabber menu, type M-x jabber-menu
.
For a less terse description, read the enclosed manual.
For bug reports, help requests and other feedback, use the trackers and forums at the project page mentioned above.
All available configuration options are described in the manual. This section only serves to point out the most important ones.To change how you are notified about incoming events, type M-x customize-group RET jabber-alerts
.
To activate logging of all chats, set jabber-history-enabled
to t
. By default, history will be saved in ~/.jabber_global_message_log
; make sure that this file has appropriate permissions. Type M-x customize-group RET jabber-history
for more options.
By default, jabber.el will send a confirmation when messages sent to you are delivered and displayed, and also send “contact is typing” notifications. To change this, type M-x customize-group RET jabber-events
, and set the three jabber-events-confirm-*
variables to nil.
By default, jabber.el logs all MUC presence announcements to the chat buffer. With the advent of mobile clients that frequently lose and regain network connectivity, the user left/joined messages can flood the chat. Customize jabber-muc-decorate-presence-patterns
to hide or deemphasize presence announcements. See the manual for details (info “(jabber) Presence announcements”).
Common connection issues
When a connection fails, there is usually a message in the echo area describing the failure. If the echo area has already been cleared, check the *Messages*
buffer.
Here are some of the common connection failure modes:
Connecting to <server-name>:5222...
This is likely a DNS lookup failure. Check the XMPP server name in jabber-account-list
.
When attempting to connect to, for instance, example.com, one of the following messages:
[email protected]: connection lost: ‘STARTTLS negotiation failed: GnuTLS error: #<process jabber>, nil’
= or =
gnutls.el: (err=[nil] Symbol has no numeric gnutls-code property) boot: ...
likely indicates the server example.com’s SSL certificate has expired. To confirm this, M-x set-variable RET gnutls-log-level RET 1 RET
, then try to connect again. Check the *Messages*
buffer for messages of the form:
gnutls.c: [1] (Emacs) verification: certificate has expired
or other verification failed messages.
A message of the form:
[email protected]: connection lost: ‘connection broken by remote peer’
may arise from connecting to the wrong port, for example attempting a STARTTLS
connection to a direct TLS
port (often 5223).
STARTTLS encryption required, but disabled/non-functional at our end
This likely means that the “gnutls” package is not available. Check
(gnutls-available-p)
if that returns nil
, consult
(info "(emacs-gnutls) Help For Users")
for more details and potential mitigation.
Documentation for developers is present in DEV.org. See also - how-to guides in the developer documentation.- Add the MELPA repositories to your Emacs - https://melpa.org/#/getting-started
- Type
M-x package-install RET jabber RET
If all goes well, jabber.el
commands like jabber-connect
should now be available in the M-x
menu.
- Ensure you have
git
,makeinfo
(part of thetexinfo
package), and Emacs 29.1 or newer. - Add the following lines to your
init.el
-
(unless (package-installed-p 'jabber)
(require 'package-vc)
(package-vc-install '(jabber
:url "https://codeberg.org/emacs-jabber/emacs-jabber"
:branch "production"
:lisp-dir "lisp"
:doc "README.org")))
Alternatively, if you have already cloned the jabber.el
repository,
you can use the following snippet to install from that repository:
(unless (package-installed-p 'jabber)
(require 'package-vc)
(add-to-list 'package-vc-selected-packages
'(jabber
:url "https://codeberg.org/emacs-jabber/emacs-jabber"
:branch "production"
:lisp-dir "lisp"
:doc "README.org"))
;; Change the path below to the location of your local jabber.el repository.
(package-vc-install-from-checkout "~/.local/src/emacs-jabber" "jabber"))
In your init.el
, type M-x eval-buffer RET
.
If all goes well, jabber.el
commands like jabber-connect
should now be
available in the M-x
menu. The documentation for jabber.el
should also
be installed.
- Ensure you have
git
, and Emacs 27.1 or newer - Clone the repository by typing the following into a terminal -
git clone https://codeberg.org/emacs-jabber/emacs-jabber cd ~/emacs-jabber/ make
- Add the following lines to your
init.el
-(add-to-list 'load-path "~/emacs-jabber/lisp/") (load "~/emacs-jabber/lisp/jabber-autoloads")
…and, while still in your
init.el
, typeM-x eval-buffer RET
.
If all goes well, jabber.el
commands like jabber-connect
should now be available in the M-x
menu.
To install the Info documentation, copy jabber.info
to /usr/local/info
and run "install-info /usr/local/info/jabber.info"
.
- Set up your own server, or use a public server. Curated lists of public servers may be found at https://compliance.conversations.im/old/ and https://providers.xmpp.net/.
- If your server supports In-Band Registration, you can register from Emacs -
- Press
C-u C-x C-j C-c
, orC-u M-x jabber-connect
. - Enter your desired JID in the form
[email protected]
. - Fill out and send the registration form.
- Press
- If your server does not support In-Band Registration, register on the server website.
- Connect to your server by typing
C-x C-j C-c
(orM-x jabber-connect
). Enter your JID and password. - Open a chat buffer in one of the following ways -
- Place point on a contact in the roster buffer, and hit
RET
. - Press
C-x C-j C-j
(M-x jabber-chat-with
) and enter a JID in the minibuffer.- This can also be used to join MUCs.
- Place point on a contact in the roster buffer, and hit
- In the chat buffer, type your message and hit
RET
to send it.- To insert a newline in your message, press
C-j
.
- To insert a newline in your message, press
- If you wish to disconnect, type
M-x jabber-disconnect
orC-x C-j C-d
.- To disconnect just one account, type
M-x jabber-disconnect-one
orC-u C-x C-j C-d
.
- To disconnect just one account, type
- Tom Berger
- Magnus Henoch
- Kirill A. Korinskiy
- Detlev Zundel
- wmii support
- Evgenii Terechkov
- Georg Lehner
- network transport functions
- Anthony Chaumas-Pellet
- Jérémy Compostella
- Mathias Dahl
- history logging
- watch functionality
- Mario Domenech Goulart
- sawfish support
- xmessage support
- Nolan Eakins
- Ami Fischman
- Chat State Notifications
- François Fleuret
- David Hansen
- Adam Sjøgren
- notifications.el support
- Rodrigo Lazo
- notifications.el support
- libnotify.el support
- Justin Kirby
- Carl Henrik Lunde
- network transport functions
- activity tracking
- Olivier Ramonat
- Andrey Slusar
- Valery V. Vorotyntsev
- GMail notifications
- Milan Zamazal
- Xavier Maillard
- Vitaly Mayatskikh
- Alexander Solovyov
- Demyan Rogozhin
- XML console mode
- Michael Cardell Widerkrantz
- tmux support
- Case Duckworth (acdw)
- Hugh Daschbach (hdasch)
- MUC presence announcements
- Enable XEP-0280 (message carbons) by default
- wgreenhouse
- 2021 resurrection
- cngimenez
- HTTP Upload support
- documentation for FSM and its use in this project
- contrapunctus
- literate Org migration
- Makefile (shoutout to tomasino of #[email protected] for the Makefile-debugging help)
- migration back to traditional source files