Skip to content

Instantly share code, notes, and snippets.

@piotrklibert
Created April 21, 2017 12:21
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save piotrklibert/37697db0fa742054835eafdfb9b7e492 to your computer and use it in GitHub Desktop.
(define-jabber-alert macos
"Displays message using terminal-notifier app on Mac OS"
'terminal-notifier-notify)
(defun terminal-notifier-notify (message &optional title)
"Show a message with `terminal-notifier-command`."
(start-process "terminal-notifier"
"*terminal-notifier*"
"reattach-to-user-namespace"
"terminal-notifier"
"-title" title
"-message" message
"-activate" "org.gnu.Emacs"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment