From edcce1d69293209d00bc8b8ad8d4929f800c1fbf Mon Sep 17 00:00:00 2001 From: Daniel Borchmann Date: Sat, 4 Nov 2017 11:17:45 +0100 Subject: [PATCH] [Org] Add custom link for OneNote files --- site-lisp/db-org.el | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/site-lisp/db-org.el b/site-lisp/db-org.el index 079ea3b..4345959 100644 --- a/site-lisp/db-org.el +++ b/site-lisp/db-org.el @@ -944,6 +944,16 @@ Current Task: %`org-clock-current-task; " (org-todo 'done) (org-save-all-org-buffers))))))) + + +;;; Custom links for Windows + +(org-add-link-type "onenote" 'org-onenote-open) + +(defun db/org-onenote-open (path) + "Visit OneNote document on PATH." + (w32-shell-execute "open" path)) + ;;; End