Created
January 22, 2015 16:31
-
-
Save v2e4lisp/d7c3d54e833204edf4b2 to your computer and use it in GitHub Desktop.
Invoke mac notifier to display a message
This file contains hidden or 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 mac-notify (&optional content title) | |
"Invoke mac notifier to display a message | |
using terminal-notifier(https://github.com/alloy/terminal-notifier) | |
brew install terminal-notifier " | |
(let ((title (or title "Emacs")) | |
(content (or content "No Content"))) | |
(call-process-shell-command | |
(format "terminal-notifier -title '%s' -message '%s'" | |
title | |
content)))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment