Skip to content

Instantly share code, notes, and snippets.

@laynor
Created November 9, 2011 11:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save laynor/1351234 to your computer and use it in GitHub Desktop.
Save laynor/1351234 to your computer and use it in GitHub Desktop.
(defun enotify-mode-line-set (message message-face)
(let ((map (make-sparse-keymap)))
(define-key map [mouse-2] (lambda () (interactive)
(message "mlosucci")))
(setq enotify-msg message)
(setq enotify-mode-line-string
(list enotify-mode-line-prefix
`(:eval
(propertize
enotify-msg
'face ,message-face
'help-echo "Last notification"
;; ))
'local-map ,map))
enotify-mode-line-suffix))
(force-mode-line-update)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment