Created
November 9, 2011 11:56
-
-
Save laynor/1351234 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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