summaryrefslogtreecommitdiffhomepage
path: root/lib/doc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/doc')
-rw-r--r--lib/doc/jao-mac.el9
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/doc/jao-mac.el b/lib/doc/jao-mac.el
index b9da4ab..06d6ad3 100644
--- a/lib/doc/jao-mac.el
+++ b/lib/doc/jao-mac.el
@@ -20,7 +20,7 @@
(require 'jao-shell)
-;;; Applescript
+;;; applescript
(defun jao-mac-applescript-prepare (&rest lines)
(let ((script (mapconcat 'identity lines "\r"))
(start))
@@ -74,6 +74,13 @@
(format "keystroke %s" (or page 1))
"delay 0.1\rkeystroke return\rend tell")))
+;;; notifications
+
+(defun jao-mac-notify (title subtitle msg)
+ (jao-mac-run-applescript*
+ (format "display notification %S with title %S subtitle %S"
+ msg title subtitle)))
+
;;; Skim
(defvar jao-skim--current-file-script
(jao-mac-applescript-prepare