From: Steve Youngs Date: Thu, 17 Apr 2014 06:10:23 +0000 (+0900) Subject: Include the message sender in desktop notification X-Git-Url: http://cgit.sxemacs.org/?p=riece;a=commitdiff_plain;h=7b398394dc42099e919682f965fab0f61383ce76 Include the message sender in desktop notification * lisp/riece-desktop-notify.el (riece-desktop-notify-title-function): Put the message sender's nick in the title. --- diff --git a/lisp/riece-desktop-notify.el b/lisp/riece-desktop-notify.el index c4fabd4..a696cae 100644 --- a/lisp/riece-desktop-notify.el +++ b/lisp/riece-desktop-notify.el @@ -59,8 +59,10 @@ :group 'riece) (defcustom riece-desktop-notify-title-function - '(lambda (message) - (riece-identity-prefix (riece-message-target message))) + #'(lambda (message) + (format "%s said in %s..." + (riece-identity-prefix (riece-message-speaker message)) + (riece-identity-prefix (riece-message-target message)))) "*The function which make title. This function must have only one message object as argument." :type 'function