Skip to content

Instantly share code, notes, and snippets.

@v2e4lisp
Created January 22, 2015 16:31
Show Gist options
  • Save v2e4lisp/d7c3d54e833204edf4b2 to your computer and use it in GitHub Desktop.
Save v2e4lisp/d7c3d54e833204edf4b2 to your computer and use it in GitHub Desktop.
Invoke mac notifier to display a message
(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