commit 34c8f2386ac732965660725c096751eaaa8f3985 parent 1cbb80d9ae29b4beb3674ddc918ad28d9defd04b Author: Alex Balgavy <alex@balgavy.eu> Date: Sat, 10 Jul 2021 11:18:31 +0200 emacs: set up Org notifications for macOS Diffstat:
M | emacs/config.org | | | 14 | ++++++++++++++ |
1 file changed, 14 insertions(+), 0 deletions(-)
diff --git a/emacs/config.org b/emacs/config.org @@ -477,6 +477,20 @@ The "(interactive)" means that it can be called from a keybinding or from M-x (t #+begin_src emacs-lisp (global-set-key (kbd "C-c E") (lambda () (interactive) (find-file (expand-file-name "config.org" user-emacs-directory)))) #+end_src +** Org notification +macOS doesn't have dbus. So I use terminal-notifier for functions like org-notify: + +#+begin_src emacs-lisp + (if (and (eq system-type 'darwin) + (executable-find "terminal-notifier")) + (setq org-show-notification-handler + (lambda (str) (start-process "terminal-notifier" nil (executable-find "terminal-notifier") + "-title" "Timer done" + "-message" str + "-group" "org.gnu.Emacs" + "-sender" "org.gnu.Emacs")))) +#+end_src + * Notmuch Define some saved searches (i.e. mailboxes):