summaryrefslogtreecommitdiffstats
path: root/.emacs.d/site-lisp/oni.el
diff options
context:
space:
mode:
authorGravatar Tom Willemsen2012-10-17 00:38:18 +0200
committerGravatar Tom Willemsen2012-10-17 00:38:18 +0200
commite3a2616488bf57d5b8dfb4cb00cedad50f387bfa (patch)
tree7cd6fb63015c8ca650072598defb7317d5b4f02e /.emacs.d/site-lisp/oni.el
parent61a0d711cd2e2d4853070c82a2ebffa0f0338df6 (diff)
downloaddotfiles-e3a2616488bf57d5b8dfb4cb00cedad50f387bfa.tar.gz
dotfiles-e3a2616488bf57d5b8dfb4cb00cedad50f387bfa.zip
.emacs.d/site-lisp/oni.el
Diffstat (limited to '.emacs.d/site-lisp/oni.el')
-rw-r--r--.emacs.d/site-lisp/oni.el6
1 files changed, 6 insertions, 0 deletions
diff --git a/.emacs.d/site-lisp/oni.el b/.emacs.d/site-lisp/oni.el
index 4103dca..c483278 100644
--- a/.emacs.d/site-lisp/oni.el
+++ b/.emacs.d/site-lisp/oni.el
@@ -24,6 +24,8 @@
;;; Code:
+(autoload 'notifications-notify "notifications")
+
(defmacro oni:define-mailbox (name email &optional signature longname)
"Define a mailbox function for mailbox NAME with address EMAIL.
Optionally set signature to SIGNATURE and use LONGNAME as the
@@ -217,6 +219,10 @@ If COUNT has been specified indent by that much, otherwise look at
(setq count tab-width))
(indent-rigidly start end count)))
+(defun oni:jabber-alert-message-func (from buffer text title)
+ (notifications-notify :title title
+ :body text))
+
(defun oni:jabber-chat-mode-func ()
"Function for `jabber-chat-mode-hook'."
(visual-line-mode)